From: John Du Hart Date: Sat, 29 Oct 2011 16:14:11 +0000 (+0000) Subject: Followup r100927 and r100905, when setting a FauxRequest use the NEW context X-Git-Tag: 1.31.0-rc.0~26827 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=148180719df1841d8a1d80253f617bca2c425962;p=lhc%2Fweb%2Fwiklou.git Followup r100927 and r100905, when setting a FauxRequest use the NEW context --- 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 );