From 93562ac5955f5d6461e5fd549b40a72c533c5ac4 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 1 Feb 2010 02:45:23 +0000 Subject: [PATCH] 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? --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1