diff --git a/api.php b/api.php index 1d7585798c7..9e1f5dd334e 100644 --- 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();