And while I'm at it, fix PHP Notice: Undefined variable: params in /www/w/includes/api/ApiMain.php on line 511

This commit is contained in:
Alexandre Emsenhuber 2010-03-30 18:55:48 +00:00
parent 4eb37b7563
commit 6777ee052d

View file

@ -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 ) );