Another regression from r36678: dieUsageMsg() expects an array, not varargs.
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 29 Jun 2008 22:29:08 +0000 (22:29 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 29 Jun 2008 22:29:08 +0000 (22:29 +0000)
includes/api/ApiQueryBase.php

index 9094070..4661f0d 100644 (file)
@@ -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();
        }