From 122f0f3c775ff78c35fc5c32b7bfe7d17485dcad Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 9 Apr 2010 20:27:57 +0000 Subject: [PATCH] Convert the previous title instead of getting it again, so the Main Page keeps pagetitle-view-mainpage as its title. --- includes/parser/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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() ) ); } } -- 2.20.1