Merge "[FileBackend] Tweaks to speed up backend copy script."
[lhc/web/wiklou.git] / api.php
diff --git a/api.php b/api.php
index 1d75857..9e1f5dd 100644 (file)
--- a/api.php
+++ b/api.php
@@ -70,7 +70,7 @@ $wgTitle = Title::makeTitle( NS_MAIN, 'API' );
  * 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();