Followup r100927 and r100905, when setting a FauxRequest use the NEW context
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Sat, 29 Oct 2011 16:14:11 +0000 (16:14 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Sat, 29 Oct 2011 16:14:11 +0000 (16:14 +0000)
includes/api/ApiMain.php

index 982ad2f..880d884 100644 (file)
@@ -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 );