Merge "SearchUpdate should read from master."
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 1 Oct 2013 14:09:12 +0000 (14:09 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 1 Oct 2013 14:09:12 +0000 (14:09 +0000)
includes/search/SearchUpdate.php

index 2148210..82a413e 100644 (file)
@@ -89,7 +89,7 @@ class SearchUpdate implements DeferrableUpdate {
 
                wfProfileIn( __METHOD__ );
 
-               $page = WikiPage::newFromId( $this->id );
+               $page = WikiPage::newFromId( $this->id, WikiPage::READ_LATEST );
                $indexTitle = Title::indexTitle( $this->title->getNamespace(), $this->title->getText() );
 
                foreach ( SearchEngine::getSearchTypes() as $type ) {