follow up r61101 for special pages like Special:Version and Special:RecentChanges
authorMark A. Hershberger <mah@users.mediawiki.org>
Mon, 15 Feb 2010 08:36:10 +0000 (08:36 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Mon, 15 Feb 2010 08:36:10 +0000 (08:36 +0000)
includes/parser/Parser.php

index a918646..d6f8d08 100644 (file)
@@ -367,7 +367,11 @@ class Parser
                        $this->mOutput->setTitleText( $wgContLang->getConvRuleTitle() );
                } elseif ( !( $wgDisableLangConversion
                                          || isset( $this->mDoubleUnderscores['notitleconvert'] ) ) ) {
-                       $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) );
+                       if ( $title->getNamespace() == NS_SPECIAL ) {
+                               $this->setTitle( $wgContLang->convert( $title ) );
+                       } else {
+                               $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) );
+                       }
                }
 
                $text = $this->mStripState->unstripNoWiki( $text );