Create a new ParserOptions()
authorPlatonides <platonides@users.mediawiki.org>
Fri, 15 Oct 2010 23:16:11 +0000 (23:16 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 15 Oct 2010 23:16:11 +0000 (23:16 +0000)
includes/Skin.php

index 2a225f6..eb8ebf9 100644 (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;
                                }