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:
parent
4eb37b7563
commit
6777ee052d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue