Create a new ParserOptions()
This commit is contained in:
parent
ed779ae90a
commit
df51be8360
1 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue