r64402 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64401‎ | r64402 | r64403 >
Date:18:55, 30 March 2010
Author:ialex
Status:ok
Tags:
Comment:
And while I'm at it, fix PHP Notice: Undefined variable: params in /www/w/includes/api/ApiMain.php on line 511
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -498,7 +498,7 @@
499499 * @param $module object An Api module
500500 * @param $params Array an array with the request parameters
501501 */
502 - protected function setupExternalResponse($module) {
 502+ protected function setupExternalResponse($module, $params) {
503503 // Ignore mustBePosted() for internal calls
504504 if ( $module->mustBePosted() && !$this->mRequest->wasPosted() ) {
505505 $this->dieUsageMsg( array( 'mustbeposted', $this->mAction ) );

Status & tagging log