From a4b89293d6d3ff78c71d45c648ecf7fb81d84cb8 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 27 Feb 2009 14:28:12 +0000 Subject: [PATCH] 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. --- includes/api/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } /** -- 2.20.1