r112638 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112637‎ | r112638 | r112639 >
Date:21:07, 28 February 2012
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (Call to a member function getVal() 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
@@ -28,9 +28,9 @@
2929 */
3030 static function handleAutoEdit( $optionsString = null, $prefillFromExisting = 'true' ) {
3131
32 - global $wgParser;
 32+ global $wgParser, $wgRequest;
3333
34 - $handler = new self( new ApiMain( null, true ), 'sfautoedit' );
 34+ $handler = new self( new ApiMain( $wgRequest, true ), 'sfautoedit' );
3535 $handler->isApiQuery( false );
3636 $options = $handler->setOptionsString( $optionsString );
3737