https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112638
Revision: 112638 Author: foxtrott Date: 2012-02-28 21:07:45 +0000 (Tue, 28 Feb 2012) Log Message: ----------- bugfix (Call to a member function getVal() on a non-object) Modified Paths: -------------- trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php Modified: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php =================================================================== --- trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php 2012-02-28 21:02:17 UTC (rev 112637) +++ trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php 2012-02-28 21:07:45 UTC (rev 112638) @@ -28,9 +28,9 @@ */ static function handleAutoEdit( $optionsString = null, $prefillFromExisting = 'true' ) { - global $wgParser; + global $wgParser, $wgRequest; - $handler = new self( new ApiMain( null, true ), 'sfautoedit' ); + $handler = new self( new ApiMain( $wgRequest, true ), 'sfautoedit' ); $handler->isApiQuery( false ); $options = $handler->setOptionsString( $optionsString ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs