From: Sam Reed Date: Wed, 23 Jun 2010 19:49:02 +0000 (+0000) Subject: Minor followup to r68482, fix the fail I introduced X-Git-Tag: 1.31.0-rc.0~36405 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=43ca814f40307b311bdcc395a877709cc456130f;p=lhc%2Fweb%2Fwiklou.git Minor followup to r68482, fix the fail I introduced + 1 minor improvement to reused method --- diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 26336f2256..340aea37df 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -186,10 +186,10 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { return array( 'from' => 'The page title to start enumerating from', 'prefix' => 'Search for all page titles that begin with this value', - 'unique' => "Only show unique links. Cannot be used with generator or {p}prop=ids", + 'unique' => "Only show unique links. Cannot be used with generator or {$p}prop=ids", 'prop' => array( 'What pieces of information to include', - " ids - Adds pageid of where the link is from (Cannot be used with {p}unique)", + " ids - Adds pageid of where the link is from (Cannot be used with {$p}unique)", ' title - Adds the title of the link', ), 'namespace' => 'The namespace to enumerate', @@ -203,9 +203,10 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { } public function getPossibleErrors() { + $m = $this->getModuleName(); return array_merge( parent::getPossibleErrors(), array( - array( 'code' => 'params', 'info' => $this->getModuleName() . ' cannot be used as a generator in unique links mode' ), - array( 'code' => 'params', 'info' => $this->getModuleName() . ' cannot return corresponding page ids in unique links mode' ), + array( 'code' => 'params', 'info' => "{$m} cannot be used as a generator in unique links mode" ), + array( 'code' => 'params', 'info' => "{$m} cannot return corresponding page ids in unique links mode" ), array( 'code' => 'params', 'info' => 'alcontinue and alfrom cannot be used together' ), array( 'code' => 'badcontinue', 'info' => 'Invalid continue parameter' ), ) );