Index: trunk/phase3/includes/Article.php |
— | — | @@ -832,15 +832,6 @@ |
833 | 833 | wfIncrStats( 'pcache_miss_stub' ); |
834 | 834 | } |
835 | 835 | |
836 | | - # For the main page, overwrite the <title> element with the con- |
837 | | - # tents of 'pagetitle-view-mainpage' instead of the default (if |
838 | | - # that's not empty). |
839 | | - if ( $this->mTitle->equals( Title::newMainPage() ) |
840 | | - && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' ) |
841 | | - { |
842 | | - $wgOut->setHTMLTitle( $m ); |
843 | | - } |
844 | | - |
845 | 836 | $wasRedirected = $this->showRedirectedFromHeader(); |
846 | 837 | $this->showNamespaceHeader(); |
847 | 838 | |
— | — | @@ -965,6 +956,15 @@ |
966 | 957 | } |
967 | 958 | } |
968 | 959 | |
| 960 | + # For the main page, overwrite the <title> element with the con- |
| 961 | + # tents of 'pagetitle-view-mainpage' instead of the default (if |
| 962 | + # that's not empty). |
| 963 | + if ( $this->mTitle->equals( Title::newMainPage() ) |
| 964 | + && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' ) |
| 965 | + { |
| 966 | + $wgOut->setHTMLTitle( $m ); |
| 967 | + } |
| 968 | + |
969 | 969 | # Now that we've filled $this->mParserOutput, we know whether |
970 | 970 | # there are any __NOINDEX__ tags on the page |
971 | 971 | $policy = $this->getRobotPolicy( 'view' ); |