jenkins-bot has submitted this change and it was merged.

Change subject: When we create a new revision object, we should assign it to 
something
......................................................................


When we create a new revision object, we should assign it to something

Bug: 52907
Change-Id: I75e90e1fc83e248c1b64b9780adb1ab28b9dc06a
---
M CirrusSearch.body.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Manybubbles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CirrusSearch.body.php b/CirrusSearch.body.php
index cf6b60d..458b9da 100644
--- a/CirrusSearch.body.php
+++ b/CirrusSearch.body.php
@@ -429,7 +429,7 @@
                // This usually happens on page creation when all the revision 
data hasn't
                // replicated out to the slaves
                if ( !$revision ) {
-                       Revision::loadFromPageId( wfGetDB( DB_MASTER ), 
$articleId );
+                       $revision = Revision::loadFromPageId( wfGetDB( 
DB_MASTER ), $articleId );
                }
 
                $update = new SearchUpdate( $articleId, $title, 
$revision->getContent() );

-- 
To view, visit https://gerrit.wikimedia.org/r/79920
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I75e90e1fc83e248c1b64b9780adb1ab28b9dc06a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to