Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2678,7 +2678,6 @@ |
2679 | 2679 | 'wgUserGroups' => $this->getUser()->getEffectiveGroups(), |
2680 | 2680 | 'wgCategories' => $this->getCategories(), |
2681 | 2681 | 'wgBreakFrames' => $this->getFrameOptions() == 'DENY', |
2682 | | - 'wgIsMainPage' => $title->isMainPage(), |
2683 | 2682 | ); |
2684 | 2683 | if ( $wgContLang->hasVariants() ) { |
2685 | 2684 | $vars['wgUserVariant'] = $wgContLang->getPreferredVariant(); |
— | — | @@ -2689,6 +2688,9 @@ |
2690 | 2689 | if ( $wgUseAjax && $wgEnableMWSuggest && !$this->getUser()->getOption( 'disablesuggest', false ) ) { |
2691 | 2690 | $vars['wgSearchNamespaces'] = SearchEngine::userNamespaces( $this->getUser() ); |
2692 | 2691 | } |
| 2692 | + if ( $title->isMainPage() ) { |
| 2693 | + $vars['wgIsMainPage'] = $title->isMainPage(); |
| 2694 | + } |
2693 | 2695 | |
2694 | 2696 | // Allow extensions to add their custom variables to the global JS variables |
2695 | 2697 | wfRunHooks( 'MakeGlobalVariablesScript', array( &$vars ) ); |