r101273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101272‎ | r101273 | r101274 >
Date:16:14, 29 October 2011
Author:johnduhart
Status:ok
Tags:
Comment:
Followup r100927 and r100905, when setting a FauxRequest use the NEW context
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -156,7 +156,7 @@
157157 $this->setContext( new DerivativeContext( $context ) );
158158
159159 if ( isset( $request ) ) {
160 - $context->setRequest( $request );
 160+ $this->getContext()->setRequest( $request );
161161 }
162162
163163 $this->mInternalMode = ( $this->getRequest() instanceof FauxRequest );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100905Adding context to the API...johnduhart23:27, 26 October 2011
r100927Followup r100905, cleanup per CR and fixes the overriding of the main Request...johnduhart01:13, 27 October 2011

Status & tagging log