dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e51b5
)
Avoid setRequestExpectations() call in internal API mode
author
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 8 Feb 2016 20:26:39 +0000
(12:26 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 8 Feb 2016 20:26:44 +0000
(12:26 -0800)
This can avoid some pointless log spam.
Change-Id: I14be6eca00a9ba3faeb1febb9ed31033cad11831
includes/api/ApiMain.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
458fd18
..
fdf7acc
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-1263,7
+1263,9
@@
class ApiMain extends ApiBase {
$module = $this->setupModule();
$this->mModule = $module;
- $this->setRequestExpectations( $module );
+ if ( !$this->mInternalMode ) {
+ $this->setRequestExpectations( $module );
+ }
$this->checkExecutePermissions( $module );