Merge "Show whether tags are active on Special:Tags"
[lhc/web/wiklou.git] / includes / search / SearchUpdate.php
index 22e4724..82a413e 100644 (file)
@@ -66,7 +66,7 @@ class SearchUpdate implements DeferrableUpdate {
                if ( $nt ) {
                        $this->id = $id;
                        // is_string() check is back-compat for ApprovedRevs
-                       if( is_string( $c ) ) {
+                       if ( is_string( $c ) ) {
                                $this->content = new TextContent( $c );
                        } else {
                                $this->content = $c ?: false;
@@ -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 ) {