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
Merge "Avoid setRequestExpectations() call in internal API mode"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiMain.php
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
eb76024
..
3b62541
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-1281,7
+1281,9
@@
class ApiMain extends ApiBase {
$module = $this->setupModule();
$this->mModule = $module;
- $this->setRequestExpectations( $module );
+ if ( !$this->mInternalMode ) {
+ $this->setRequestExpectations( $module );
+ }
$this->checkExecutePermissions( $module );