From a1a63d4d8dba6a0d578a0a6163756290c91299b1 Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Sun, 11 Apr 2010 13:04:58 +0000 Subject: [PATCH] Follow up r64876. Try to fix pagetitle-view-mainpage. --- includes/Article.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 3211e6f9b4..7915e80563 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -832,15 +832,6 @@ class Article { wfIncrStats( 'pcache_miss_stub' ); } - # For the main page, overwrite the element with the con- - # tents of 'pagetitle-view-mainpage' instead of the default (if - # that's not empty). - if ( $this->mTitle->equals( Title::newMainPage() ) - && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' ) - { - $wgOut->setHTMLTitle( $m ); - } - $wasRedirected = $this->showRedirectedFromHeader(); $this->showNamespaceHeader(); @@ -965,6 +956,15 @@ class Article { } } + # For the main page, overwrite the <title> element with the con- + # tents of 'pagetitle-view-mainpage' instead of the default (if + # that's not empty). + if ( $this->mTitle->equals( Title::newMainPage() ) + && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' ) + { + $wgOut->setHTMLTitle( $m ); + } + # Now that we've filled $this->mParserOutput, we know whether # there are any __NOINDEX__ tags on the page $policy = $this->getRobotPolicy( 'view' ); -- 2.20.1