From: Mark A. Hershberger Date: Mon, 1 Feb 2010 02:45:23 +0000 (+0000) Subject: fixes problem on PHP 5.1 where titles are displayed as "Object": X-Git-Tag: 1.31.0-rc.0~38001 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=93562ac5955f5d6461e5fd549b40a72c533c5ac4;p=lhc%2Fweb%2Fwiklou.git 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? --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 8fb333c86a..1805b15a5e 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -364,7 +364,7 @@ class Parser $this->mOutput->setTitleText( $wgContLang->getConvRuleTitle() ); } elseif ( !( $wgDisableLangConversion || isset( $this->mDoubleUnderscores['notitleconvert'] ) ) ) { - $this->mOutput->setTitleText( $wgContLang->convert( $title ) ); + $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText() ) ); } $text = $this->mStripState->unstripNoWiki( $text );