From: Platonides Date: Fri, 9 Apr 2010 20:27:57 +0000 (+0000) Subject: Convert the previous title instead of getting it again, so the Main Page keeps pageti... X-Git-Tag: 1.31.0-rc.0~37189 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=122f0f3c775ff78c35fc5c32b7bfe7d17485dcad;p=lhc%2Fweb%2Fwiklou.git Convert the previous title instead of getting it again, so the Main Page keeps pagetitle-view-mainpage as its title. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index be1b76a0fb..00467cdf03 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -385,9 +385,8 @@ class Parser { $convruletitle = $wgContLang->getConvRuleTitle(); if ( $convruletitle ) { $this->mOutput->setTitleText( $convruletitle ); - } - else { - $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) ); + } else { + $this->mOutput->setTitleText( $wgContLang->convert( $this->mOutput->getTitleText() ) ); } }