From 148180719df1841d8a1d80253f617bca2c425962 Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Sat, 29 Oct 2011 16:14:11 +0000 Subject: [PATCH] Followup r100927 and r100905, when setting a FauxRequest use the NEW context --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 982ad2fcc4..880d884987 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -156,7 +156,7 @@ class ApiMain extends ApiBase { $this->setContext( new DerivativeContext( $context ) ); if ( isset( $request ) ) { - $context->setRequest( $request ); + $this->getContext()->setRequest( $request ); } $this->mInternalMode = ( $this->getRequest() instanceof FauxRequest ); -- 2.20.1