follow up of r45642, only set page title when it is not on the special namespace
authorShinjiman <shinjiman@users.mediawiki.org>
Sat, 10 Jan 2009 19:34:16 +0000 (19:34 +0000)
committerShinjiman <shinjiman@users.mediawiki.org>
Sat, 10 Jan 2009 19:34:16 +0000 (19:34 +0000)
includes/OutputPage.php

index b3e727c..b728f06 100644 (file)
@@ -511,7 +511,8 @@ class OutputPage {
                $this->mLanguageLinks += $parserOutput->getLanguageLinks();
                $this->addCategoryLinks( $parserOutput->getCategories() );
                $this->mNewSectionLink = $parserOutput->getNewSection();
-               $this->setPageTitle($parserOutput->mTitleText);
+               if ($wgTitle->mNamespace !== NS_SPECIAL)
+                       $this->setPageTitle($parserOutput->getTitleText());
 
                if( is_null( $wgExemptFromUserRobotsControl ) ) {
                        $bannedNamespaces = $wgContentNamespaces;