r81758 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81757‎ | r81758 | r81759 >
Date:16:02, 8 February 2011
Author:platonides
Status:deferred
Tags:
Comment:
Set mOptions before clearState()
Modified paths:
  • /trunk/extensions/IndexFunction/IndexAbstracts.php (modified) (history)

Diff [purge]

Index: trunk/extensions/IndexFunction/IndexAbstracts.php
@@ -101,8 +101,8 @@
102102 // First, we use the system preprocessor to break down the text
103103 // into text, templates, extensions, and comments:
104104 global $wgParser;
 105+ $wgParser->mOptions = new ParserOptions();
105106 $wgParser->clearState();
106 - $wgParser->mOptions = new ParserOptions();
107107 $frame = $wgParser->getPreprocessor()->newFrame();
108108 $dom = $wgParser->preprocessToDom( $text );
109109

Status & tagging log