From: Roan Kattouw Date: Fri, 27 Feb 2009 14:28:12 +0000 (+0000) Subject: API: (bug 17703) Fix regression from r47039 causing error code and error text to... X-Git-Tag: 1.31.0-rc.0~42664 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=a4b89293d6d3ff78c71d45c648ecf7fb81d84cb8;p=lhc%2Fweb%2Fwiklou.git API: (bug 17703) Fix regression from r47039 causing error code and error text to be switched for some errors. r47039 was backported to the 1.14 branch, will backport this one too. --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 7956005b5f..ff21a8e05d 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -817,7 +817,7 @@ abstract class ApiBase { */ public function dieUsageMsg($error) { $parsed = $this->parseMsg($error); - $this->dieUsage($parsed['code'], $parsed['info']); + $this->dieUsage($parsed['info'], $parsed['code']); } /**