From: Roan Kattouw Date: Sun, 29 Jun 2008 22:29:08 +0000 (+0000) Subject: Another regression from r36678: dieUsageMsg() expects an array, not varargs. X-Git-Tag: 1.31.0-rc.0~46845 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=d4fe7a376381c8af3998b52a538aa59450ccf773;p=lhc%2Fweb%2Fwiklou.git Another regression from r36678: dieUsageMsg() expects an array, not varargs. --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 90940703a1..4661f0d1db 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -326,7 +326,7 @@ abstract class ApiQueryBase extends ApiBase { public function titleToKey($title) { $t = Title::newFromText($title); if(!$t) - $this->dieUsageMsg('invalidtitle', $title); + $this->dieUsageMsg(array('invalidtitle', $title)); return $t->getDbKey(); } @@ -339,7 +339,7 @@ abstract class ApiQueryBase extends ApiBase { $t = Title::newFromDbKey($key); # This really shouldn't happen but we gotta check anyway if(!$t) - $this->dieUsageMsg('invalidtitle', $key); + $this->dieUsageMsg(array('invalidtitle', $key)); return $t->getPrefixedText(); }