From d4fe7a376381c8af3998b52a538aa59450ccf773 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 29 Jun 2008 22:29:08 +0000 Subject: [PATCH] Another regression from r36678: dieUsageMsg() expects an array, not varargs. --- includes/api/ApiQueryBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.20.1