From: Aaron Schulz Date: Mon, 8 Feb 2016 20:26:39 +0000 (-0800) Subject: Avoid setRequestExpectations() call in internal API mode X-Git-Tag: 1.31.0-rc.0~7992^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=de5f0efbd275f969ea70758267650d9400124fa4;p=lhc%2Fweb%2Fwiklou.git Avoid setRequestExpectations() call in internal API mode This can avoid some pointless log spam. Change-Id: I14be6eca00a9ba3faeb1febb9ed31033cad11831 --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 458fd18ffa..fdf7acce74 100644 --- 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 );