r64824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64823‎ | r64824 | r64825 >
Date:19:49, 9 April 2010
Author:platonides
Status:deferred
Tags:
Comment:
Recover namespaces lost by bad scap.
Modified paths:
  • /branches/REL1_16/phase3/includes/parser/Parser.php (modified) (history)
  • /branches/wmf/1.16wmf4/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/parser/Parser.php
@@ -349,8 +349,8 @@
350350 /**
351351 * The page doesn't get language converted if
352352 * a) It's disabled
353 - * c) Content isn't converted
354 - * d) It's a conversion table
 353+ * b) Content isn't converted
 354+ * c) It's a conversion table
355355 */
356356 if ( !( $wgDisableLangConversion
357357 || isset( $this->mDoubleUnderscores['nocontentconvert'] )
@@ -389,7 +389,7 @@
390390 $this->mOutput->setTitleText( $convruletitle );
391391 }
392392 else {
393 - $this->mOutput->setTitleText( $wgContLang->convert( $title->getText() ) );
 393+ $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) );
394394 }
395395 }
396396
Index: branches/REL1_16/phase3/includes/parser/Parser.php
@@ -389,7 +389,7 @@
390390 $this->mOutput->setTitleText( $convruletitle );
391391 }
392392 else {
393 - $this->mOutput->setTitleText( $wgContLang->convert( $title->getText() ) );
 393+ $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) );
394394 }
395395 }
396396

Status & tagging log