From 6777ee052d8290556b92d46af0847ecf9d392c38 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 30 Mar 2010 18:55:48 +0000 Subject: [PATCH] And while I'm at it, fix PHP Notice: Undefined variable: params in /www/w/includes/api/ApiMain.php on line 511 --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1