r64827 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64826‎ | r64827 | r64828 >
Date:20:27, 9 April 2010
Author:platonides
Status:ok
Tags:
Comment:
Convert the previous title instead of getting it again, so the Main Page keeps pagetitle-view-mainpage as its title.
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -385,10 +385,9 @@
386386 $convruletitle = $wgContLang->getConvRuleTitle();
387387 if ( $convruletitle ) {
388388 $this->mOutput->setTitleText( $convruletitle );
 389+ } else {
 390+ $this->mOutput->setTitleText( $wgContLang->convert( $this->mOutput->getTitleText() ) );
389391 }
390 - else {
391 - $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) );
392 - }
393392 }
394393
395394 $text = $this->mStripState->unstripNoWiki( $text );

Follow-up revisions

RevisionCommit summaryAuthorDate
r648391.16wmf4: MFT r64827catrope22:34, 9 April 2010
r64840MFT r64827. It also fixes bug Bug 23124.platonides22:40, 9 April 2010
r64851Fix bug 23115 again. Follow up r64821, r64823 and r64827. Rewrite the convert...philip05:46, 10 April 2010

Status & tagging log