From: Alexandre Emsenhuber Date: Tue, 30 Mar 2010 18:55:48 +0000 (+0000) Subject: And while I'm at it, fix PHP Notice: Undefined variable: params in /www/w/includes... X-Git-Tag: 1.31.0-rc.0~37300 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=6777ee052d8290556b92d46af0847ecf9d392c38;p=lhc%2Fweb%2Fwiklou.git And while I'm at it, fix PHP Notice: Undefined variable: params in /www/w/includes/api/ApiMain.php on line 511 --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 601385925a..19db4cbb17 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -498,7 +498,7 @@ class ApiMain extends ApiBase { * @param $module object An Api module * @param $params Array an array with the request parameters */ - protected function setupExternalResponse($module) { + protected function setupExternalResponse($module, $params) { // Ignore mustBePosted() for internal calls if ( $module->mustBePosted() && !$this->mRequest->wasPosted() ) { $this->dieUsageMsg( array( 'mustbeposted', $this->mAction ) );