Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/79920
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/20/79920/1
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: newchange
Gerrit-Change-Id: I75e90e1fc83e248c1b64b9780adb1ab28b9dc06a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits