And while I'm at it, fix PHP Notice: Undefined variable: params in /www/w/includes...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 30 Mar 2010 18:55:48 +0000 (18:55 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 30 Mar 2010 18:55:48 +0000 (18:55 +0000)
includes/api/ApiMain.php

index 6013859..19db4cb 100644 (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 ) );