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