Create a new ParserOptions()

This commit is contained in:
Platonides 2010-10-15 23:16:11 +00:00
parent ed779ae90a
commit df51be8360

View file

@ -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;
}