Passing only the WebRequest instance is not the best
thing when it accepts a complete context.
Change-Id: If02148c850b395a2382f87cbeafbc25887ce8728
* is some form of an ApiMain, possibly even one that produces an error message,
* but we don't care here, as that is handled by the ctor.
*/
-$processor = new ApiMain( $wgRequest, $wgEnableWriteAPI );
+$processor = new ApiMain( RequestContext::getMain(), $wgEnableWriteAPI );
// Process data & print results
$processor->execute();