Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php |
— | — | @@ -28,9 +28,9 @@ |
29 | 29 | */ |
30 | 30 | static function handleAutoEdit( $optionsString = null, $prefillFromExisting = 'true' ) { |
31 | 31 | |
32 | | - global $wgParser; |
| 32 | + global $wgParser, $wgRequest; |
33 | 33 | |
34 | | - $handler = new self( new ApiMain( null, true ), 'sfautoedit' ); |
| 34 | + $handler = new self( new ApiMain( $wgRequest, true ), 'sfautoedit' ); |
35 | 35 | $handler->isApiQuery( false ); |
36 | 36 | $options = $handler->setOptionsString( $optionsString ); |
37 | 37 | |