Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -83,8 +83,7 @@ |
84 | 84 | |
85 | 85 | if ( $form_submitted ) { |
86 | 86 | global $wgUser, $wgTitle, $wgOut; |
87 | | - $wgParser->mOptions = new ParserOptions(); |
88 | | - $wgParser->mOptions->initialiseFromUser( $wgUser ); |
| 87 | + $wgParser->mOptions = ParserOptions::newFromUser( $wgUser ); |
89 | 88 | // @TODO - fix RunQuery's parsing so that this check |
90 | 89 | // isn't needed. |
91 | 90 | if ( $wgParser->getOutput() == null ) { |
Index: trunk/extensions/TemplateLink/TemplateLink.body.php |
— | — | @@ -49,8 +49,7 @@ |
50 | 50 | function sandboxParse($wikiText){ |
51 | 51 | global $wgUser; |
52 | 52 | $myParser = new Parser(); |
53 | | - $myParserOptions = new ParserOptions(); |
54 | | - $myParserOptions->initialiseFromUser($wgUser); |
| 53 | + $myParserOptions = ParserOptions::newFromUser( $wgUser ); |
55 | 54 | $result = $myParser->parse($wikiText, $this->getTitle(), $myParserOptions); |
56 | 55 | return $result->getText(); |
57 | 56 | } |