r61773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61772‎ | r61773 | r61774 >
Date:02:45, 1 February 2010
Author:mah
Status:ok
Tags:
Comment:
fixes problem on PHP 5.1 where titles are displayed as "Object":
TimStarling sez: "presumably some clever person has been using __toString()"
Why did it have to be in code *I* wrote?
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -364,7 +364,7 @@
365365 $this->mOutput->setTitleText( $wgContLang->getConvRuleTitle() );
366366 } elseif ( !( $wgDisableLangConversion
367367 || isset( $this->mDoubleUnderscores['notitleconvert'] ) ) ) {
368 - $this->mOutput->setTitleText( $wgContLang->convert( $title ) );
 368+ $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) );
369369 }
370370
371371 $text = $this->mStripState->unstripNoWiki( $text );

Status & tagging log