Using true instead of calling isMainPage() again.
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 15 Jun 2011 01:11:16 +0000 (01:11 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 15 Jun 2011 01:11:16 +0000 (01:11 +0000)
(Follow-up r90099 CR, Poke r87212)

includes/OutputPage.php

index cc7a8a6..4d88a8d 100644 (file)
@@ -2689,7 +2689,7 @@ class OutputPage {
                        $vars['wgSearchNamespaces'] = SearchEngine::userNamespaces( $this->getUser() );
                }
                if ( $title->isMainPage() ) {
-                       $vars['wgIsMainPage'] = $title->isMainPage();
+                       $vars['wgIsMainPage'] = true;
                }
 
                // Allow extensions to add their custom variables to the global JS variables