Merge "Show whether tags are active on Special:Tags"
[lhc/web/wiklou.git] / 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 ) {