dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Followup r100927 and r100905, when setting a FauxRequest use the NEW context
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiMain.php
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
982ad2f
..
880d884
100644
(file)
--- 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 );