r97090 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97089‎ | r97090 | r97091 >
Date:19:32, 14 September 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (Call to a member function enableLimitReport() on a non-object)
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php
@@ -73,10 +73,17 @@
7474 $wgParser->_unstub();
7575 }
7676
77 - $wgParser->getOptions()->enableLimitReport( false );
 77+ $parseroptions = $wgParser->getOptions();
7878
 79+ if ( $parseroptions == null ) {
 80+ $parseroptions = new ParserOptions();
 81+ $wgParser->Options($parseroptions);
 82+ }
7983
80 - return $wgParser->parse( $result, $title, $wgParser->getOptions() )->getText();
 84+ $parseroptions->enableLimitReport( false );
 85+
 86+
 87+ return $wgParser->parse( $result, $title, $parseroptions )->getText();
8188 }
8289
8390 /**

Sign-offs

UserFlagDate
Nikerabbitinspected05:13, 15 September 2011