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

Change subject: There is no $content, just $rev->getContent()
......................................................................


There is no $content, just $rev->getContent()

Bug: 52353
Change-Id: I662bc5039ebc2695835e7ae10442ded40d1b39a9
---
M forceSearchIndex.php
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/forceSearchIndex.php b/forceSearchIndex.php
index 7287778..278f90e 100644
--- a/forceSearchIndex.php
+++ b/forceSearchIndex.php
@@ -170,7 +170,7 @@
                        wfProfileIn( __METHOD__ . '::decodeResults' );
                        $rev = Revision::newFromRow( $row );
                        if ( $rev->getContent()->isRedirect() ) {
-                               $target = $content->getUltimateRedirectTarget();
+                               $target = 
$rev->getContent()->getUltimateRedirectTarget();
                                $rev = Revision::loadFromPageId( wfGetDB( 
DB_SLAVE ), $target->getArticleID() );
                        }
                        $result[] = array(

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I662bc5039ebc2695835e7ae10442ded40d1b39a9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: 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