From d0483bf747bd99c2eae63519b3929b6c64663ece Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 19 Feb 2011 13:39:09 +0000 Subject: [PATCH] * Use $this->mTitle instead of $wgTitle * Put back the wfMsgForContentNoTrans() added in r66835 but reverted in r68707 since wfMsgForContent() is breaking the {{...}} syntax --- includes/Skin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index f3e5669126..4679a2432d 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1357,7 +1357,7 @@ abstract class Skin extends Linker { * @param $message String */ function addToSidebar( &$bar, $message ) { - $this->addToSidebarPlain( $bar, wfMsgForContent( $message ) ); + $this->addToSidebarPlain( $bar, wfMsgForContentNoTrans( $message ) ); } /** @@ -1423,14 +1423,14 @@ abstract class Skin extends Linker { 'active' => false ); } else if ( ( substr( $line, 0, 2 ) == '{{' ) && ( substr( $line, -2 ) == '}}' ) ) { - global $wgParser, $wgTitle; + global $wgParser; $line = substr( $line, 2, strlen( $line ) - 4 ); $options = new ParserOptions(); $options->setEditSection( false ); $options->setInterfaceMessage( true ); - $wikiBar[$heading] = $wgParser->parse( wfMsgForContentNoTrans( $line ) , $wgTitle, $options )->getText(); + $wikiBar[$heading] = $wgParser->parse( wfMsgForContentNoTrans( $line ) , $this->mTitle, $options )->getText(); } else { continue; } -- 2.20.1