Index: trunk/phase3/includes/api/ApiQueryAllLinks.php |
— | — | @@ -186,10 +186,10 @@ |
187 | 187 | return array( |
188 | 188 | 'from' => 'The page title to start enumerating from', |
189 | 189 | 'prefix' => 'Search for all page titles that begin with this value', |
190 | | - 'unique' => "Only show unique links. Cannot be used with generator or {p}prop=ids", |
| 190 | + 'unique' => "Only show unique links. Cannot be used with generator or {$p}prop=ids", |
191 | 191 | 'prop' => array( |
192 | 192 | 'What pieces of information to include', |
193 | | - " ids - Adds pageid of where the link is from (Cannot be used with {p}unique)", |
| 193 | + " ids - Adds pageid of where the link is from (Cannot be used with {$p}unique)", |
194 | 194 | ' title - Adds the title of the link', |
195 | 195 | ), |
196 | 196 | 'namespace' => 'The namespace to enumerate', |
— | — | @@ -203,9 +203,10 @@ |
204 | 204 | } |
205 | 205 | |
206 | 206 | public function getPossibleErrors() { |
| 207 | + $m = $this->getModuleName(); |
207 | 208 | return array_merge( parent::getPossibleErrors(), array( |
208 | | - array( 'code' => 'params', 'info' => $this->getModuleName() . ' cannot be used as a generator in unique links mode' ), |
209 | | - array( 'code' => 'params', 'info' => $this->getModuleName() . ' cannot return corresponding page ids in unique links mode' ), |
| 209 | + array( 'code' => 'params', 'info' => "{$m} cannot be used as a generator in unique links mode" ), |
| 210 | + array( 'code' => 'params', 'info' => "{$m} cannot return corresponding page ids in unique links mode" ), |
210 | 211 | array( 'code' => 'params', 'info' => 'alcontinue and alfrom cannot be used together' ), |
211 | 212 | array( 'code' => 'badcontinue', 'info' => 'Invalid continue parameter' ), |
212 | 213 | ) ); |