Index: branches/wmf/1.17wmf1/extensions/LiquidThreads/classes/View.php |
— | — | @@ -2166,9 +2166,9 @@ |
2167 | 2167 | } |
2168 | 2168 | |
2169 | 2169 | // Parser gets antsy about parser options here if it hasn't parsed anything before. |
| 2170 | + $wgParser->mOptions = new ParserOptions; |
2170 | 2171 | $wgParser->clearState(); |
2171 | 2172 | $wgParser->setTitle( $wgTitle ); |
2172 | | - $wgParser->mOptions = new ParserOptions; |
2173 | 2173 | |
2174 | 2174 | $sig = $wgOut->parseInline( $sig ); |
2175 | 2175 | |
— | — | @@ -2183,9 +2183,9 @@ |
2184 | 2184 | $title = $wgTitle ? $wgTitle : $user->getUserPage(); |
2185 | 2185 | |
2186 | 2186 | // Parser gets antsy about parser options here if it hasn't parsed anything before. |
| 2187 | + $wgParser->mOptions = new ParserOptions; |
2187 | 2188 | $wgParser->clearState(); |
2188 | 2189 | $wgParser->setTitle( $title ); |
2189 | | - $wgParser->mOptions = new ParserOptions; |
2190 | 2190 | |
2191 | 2191 | $sig = $wgParser->preSaveTransform( |
2192 | 2192 | $sig, |
Index: branches/wmf/1.17wmf1/extensions/OpenSearchXml/ApiOpenSearchXml.php |
— | — | @@ -261,8 +261,8 @@ |
262 | 262 | // First, we use the system preprocessor to break down the text |
263 | 263 | // into text, templates, extensions, and comments: |
264 | 264 | global $wgParser; |
| 265 | + $wgParser->mOptions = new ParserOptions(); |
265 | 266 | $wgParser->clearState(); |
266 | | - $wgParser->mOptions = new ParserOptions(); |
267 | 267 | $frame = $wgParser->getPreprocessor()->newFrame(); |
268 | 268 | $dom = $wgParser->preprocessToDom( $text ); |
269 | 269 | |