Index: trunk/phase3/includes/api/ApiMove.php |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | ); |
212 | 212 | } |
213 | 213 | |
214 | | - public function getPossibleErrors() { |
| 214 | + public function getPossibleErrors() { |
215 | 215 | return array_merge( parent::getPossibleErrors(), array( |
216 | 216 | array( 'missingparam', 'to' ), |
217 | 217 | array( 'missingparam', 'token' ), |
— | — | @@ -220,7 +220,7 @@ |
221 | 221 | array( 'notanarticle' ), |
222 | 222 | array( 'invalidtitle', 'to' ), |
223 | 223 | array( 'sharedfile-exists' ), |
224 | | - ) ); |
| 224 | + ) ); |
225 | 225 | } |
226 | 226 | |
227 | 227 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiProtect.php |
— | — | @@ -172,7 +172,7 @@ |
173 | 173 | ); |
174 | 174 | } |
175 | 175 | |
176 | | - public function getPossibleErrors() { |
| 176 | + public function getPossibleErrors() { |
177 | 177 | return array_merge( parent::getPossibleErrors(), array( |
178 | 178 | array( 'missingparam', 'title' ), |
179 | 179 | array( 'missingparam', 'token' ), |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | array( 'protect-invalidlevel', 'level' ), |
188 | 188 | array( 'invalidexpiry', 'expiry' ), |
189 | 189 | array( 'pastexpiry', 'expiry' ), |
190 | | - ) ); |
| 190 | + ) ); |
191 | 191 | } |
192 | 192 | |
193 | 193 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -454,13 +454,13 @@ |
455 | 455 | } |
456 | 456 | } |
457 | 457 | |
458 | | - public function getPossibleErrors() { |
| 458 | + public function getPossibleErrors() { |
459 | 459 | return array_merge( parent::getPossibleErrors(), array( |
460 | 460 | array( 'invalidtitle', 'title' ), |
461 | 461 | array( 'missingparam', 'title' ), |
462 | 462 | array( 'code' => 'bad_image_title', 'info' => "The title for {$this->getModuleName()} query must be an image" ), |
463 | 463 | array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ), |
464 | | - ) ); |
| 464 | + ) ); |
465 | 465 | } |
466 | 466 | |
467 | 467 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiRollback.php |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | ); |
116 | 116 | } |
117 | 117 | |
118 | | - public function getPossibleErrors() { |
| 118 | + public function getPossibleErrors() { |
119 | 119 | return array_merge( parent::getPossibleErrors(), array( |
120 | 120 | array( 'missingparam', 'title' ), |
121 | 121 | array( 'missingparam', 'user' ), |
— | — | @@ -122,7 +122,7 @@ |
123 | 123 | array( 'invalidtitle', 'title' ), |
124 | 124 | array( 'notanarticle' ), |
125 | 125 | array( 'invaliduser', 'user' ), |
126 | | - ) ); |
| 126 | + ) ); |
127 | 127 | } |
128 | 128 | |
129 | 129 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiQueryBase.php |
— | — | @@ -408,11 +408,11 @@ |
409 | 409 | return substr( $this->keyToTitle( $keyPart . 'x' ), 0, - 1 ); |
410 | 410 | } |
411 | 411 | |
412 | | - public function getPossibleErrors() { |
| 412 | + public function getPossibleErrors() { |
413 | 413 | return array_merge( parent::getPossibleErrors(), array( |
414 | 414 | array( 'invalidtitle', 'title' ), |
415 | 415 | array( 'invalidtitle', 'key' ), |
416 | | - ) ); |
| 416 | + ) ); |
417 | 417 | } |
418 | 418 | |
419 | 419 | /** |
Index: trunk/phase3/includes/api/ApiDelete.php |
— | — | @@ -210,14 +210,14 @@ |
211 | 211 | ); |
212 | 212 | } |
213 | 213 | |
214 | | - public function getPossibleErrors() { |
| 214 | + public function getPossibleErrors() { |
215 | 215 | return array_merge( parent::getPossibleErrors(), array( |
216 | 216 | array( 'missingparam', 'token' ), |
217 | 217 | array( 'invalidtitle', 'title' ), |
218 | 218 | array( 'nosuchpageid', 'pageid' ), |
219 | 219 | array( 'notanarticle' ), |
220 | 220 | array( 'hookaborted', 'error' ), |
221 | | - ) ); |
| 221 | + ) ); |
222 | 222 | } |
223 | 223 | |
224 | 224 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiImport.php |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | ); |
143 | 143 | } |
144 | 144 | |
145 | | - public function getPossibleErrors() { |
| 145 | + public function getPossibleErrors() { |
146 | 146 | return array_merge( parent::getPossibleErrors(), array( |
147 | 147 | array( 'cantimport' ), |
148 | 148 | array( 'missingparam', 'token' ), |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | array( 'cantimport-upload' ), |
152 | 152 | array( 'import-unknownerror', 'source' ), |
153 | 153 | array( 'import-unknownerror', 'result' ), |
154 | | - ) ); |
| 154 | + ) ); |
155 | 155 | } |
156 | 156 | |
157 | 157 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -346,7 +346,7 @@ |
347 | 347 | return 'Create and edit pages.'; |
348 | 348 | } |
349 | 349 | |
350 | | - public function getPossibleErrors() { |
| 350 | + public function getPossibleErrors() { |
351 | 351 | return array_merge( parent::getPossibleErrors(), array( |
352 | 352 | array( 'missingparam', 'title' ), |
353 | 353 | array( 'missingtext' ), |
— | — | @@ -380,7 +380,7 @@ |
381 | 381 | array( 'unknownerror', 'retval' ), |
382 | 382 | array( 'code' => 'nosuchsection', 'info' => 'There is no section section.' ), |
383 | 383 | array( 'code' => 'invalidsection', 'info' => 'The section parameter must be set to an integer or \'new\'' ), |
384 | | - ) ); |
| 384 | + ) ); |
385 | 385 | } |
386 | 386 | |
387 | 387 | private function getMaxArticleSize() { |
Index: trunk/phase3/includes/api/ApiUndelete.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | ); |
120 | 120 | } |
121 | 121 | |
122 | | - public function getPossibleErrors() { |
| 122 | + public function getPossibleErrors() { |
123 | 123 | return array_merge( parent::getPossibleErrors(), array( |
124 | 124 | array( 'missingparam', 'title' ), |
125 | 125 | array( 'missingparam', 'token' ), |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | array( 'sessionfailure' ), |
129 | 129 | array( 'invalidtitle', 'title' ), |
130 | 130 | array( 'cannotundelete' ), |
131 | | - ) ); |
| 131 | + ) ); |
132 | 132 | } |
133 | 133 | |
134 | 134 | protected function getExamples() { |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -561,7 +561,7 @@ |
562 | 562 | ); |
563 | 563 | } |
564 | 564 | |
565 | | - public function getPossibleErrors() { |
| 565 | + public function getPossibleErrors() { |
566 | 566 | return array_merge( parent::getPossibleErrors(), array( |
567 | 567 | array( 'nosuchrevid', 'diffto' ), |
568 | 568 | array( 'code' => 'revids', 'info' => 'The revids= parameter may not be used with the list options (limit, startid, endid, dirNewer, start, end).' ), |
— | — | @@ -571,7 +571,7 @@ |
572 | 572 | array( 'code' => 'badparams', 'info' => 'end and endid cannot be used together' ), |
573 | 573 | array( 'code' => 'badparams', 'info' => 'user and excludeuser cannot be used together' ), |
574 | 574 | array( 'code' => 'nosuchsection', 'info' => 'There is no section section in rID' ), |
575 | | - ) ); |
| 575 | + ) ); |
576 | 576 | } |
577 | 577 | |
578 | 578 | protected function getExamples() { |