From: Platonides Date: Fri, 15 Oct 2010 23:16:11 +0000 (+0000) Subject: Create a new ParserOptions() X-Git-Tag: 1.31.0-rc.0~34485 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=df51be8360b2798ce90fda2c4e2fea80f6b12b09;p=lhc%2Fweb%2Fwiklou.git Create a new ParserOptions() --- diff --git a/includes/Skin.php b/includes/Skin.php index 2a225f6316..eb8ebf97a5 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2192,12 +2192,10 @@ class Skin extends Linker { $line = substr( $line, 2, strlen( $line ) - 4 ); - if ( is_null( $wgParser->mOptions ) ) { - $wgParser->mOptions = new ParserOptions(); - } - - $wgParser->mOptions->setEditSection( false ); - $wikiBar[$heading] = $wgParser->parse( wfMsgForContentNoTrans( $line ) , $wgTitle, $wgParser->mOptions )->getText(); + $options = new ParserOptions(); + $options->setEditSection( false ); + $options->setInterfaceMessage( true ); + $wikiBar[$heading] = $wgParser->parse( wfMsgForContentNoTrans( $line ) , $wgTitle, $options )->getText(); } else { continue; }