From: Mark A. Hershberger Date: Mon, 15 Feb 2010 08:36:10 +0000 (+0000) Subject: follow up r61101 for special pages like Special:Version and Special:RecentChanges X-Git-Tag: 1.31.0-rc.0~37755 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=daf51bcdb3e3328c2b252502477ab6f7e61a2eb4;p=lhc%2Fweb%2Fwiklou.git follow up r61101 for special pages like Special:Version and Special:RecentChanges --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index a918646ab0..d6f8d083c3 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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 );