API: Don't use a nonexistent message name
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 27 Mar 2008 21:05:18 +0000 (21:05 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 27 Mar 2008 21:05:18 +0000 (21:05 +0000)
includes/api/ApiParse.php

index fd24ca3..df01fad 100644 (file)
@@ -51,7 +51,7 @@ class ApiParse extends ApiBase {
                if(!is_null($page)) {
                        $titleObj = Title::newFromText($page);
                        if(!$titleObj)
-                               $this->dieUsageMsg(array('missingtitle', $page));
+                               $this->dieUsage("The page you specified doesn't exist", 'missingtitle')
 
                        // Try the parser cache first
                        $articleObj = new Article($titleObj);