Please use standardized error messages here
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 12 Jun 2008 11:43:15 +0000 (11:43 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 12 Jun 2008 11:43:15 +0000 (11:43 +0000)
includes/api/ApiQueryBacklinks.php

index cdc70ed..0ae3681 100644 (file)
@@ -266,7 +266,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
                        if ( $this->params['title'] !== "" ) {
                                $title = Title::newFromText( $this->params['title'] );
                                if ( !$title ) {
-                                       $this->dieUsage("Invalid title param");
+                                       $this->dieUsageMsg(array('invalidtitle', $this->params['title']));
                                } else {
                                        $this->rootTitle = $title;
                                }