| Index: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php |
| — | — | @@ -264,8 +264,8 @@ |
| 265 | 265 | // First, we use the system preprocessor to break down the text |
| 266 | 266 | // into text, templates, extensions, and comments: |
| 267 | 267 | global $wgParser; |
| | 268 | + $wgParser->mOptions = new ParserOptions(); |
| 268 | 269 | $wgParser->clearState(); |
| 269 | | - $wgParser->mOptions = new ParserOptions(); |
| 270 | 270 | $frame = $wgParser->getPreprocessor()->newFrame(); |
| 271 | 271 | $dom = $wgParser->preprocessToDom( $text ); |
| 272 | 272 | |