Index: trunk/phase3/includes/api/ApiMove.php |
— | — | @@ -225,6 +225,8 @@ |
226 | 226 | |
227 | 227 | public function getPossibleErrors() { |
228 | 228 | return array_merge( parent::getPossibleErrors(), array( |
| 229 | + array( 'code' => 'missingparam', 'info' => 'One of the parameters from, fromid is required' ), |
| 230 | + array( 'code' => 'invalidparammix', 'info' => 'The parameters from, fromid can not be used together' ), |
229 | 231 | array( 'invalidtitle', 'from' ), |
230 | 232 | array( 'nosuchpageid', 'fromid' ), |
231 | 233 | array( 'notanarticle' ), |
Index: trunk/phase3/includes/api/ApiDelete.php |
— | — | @@ -256,6 +256,8 @@ |
257 | 257 | |
258 | 258 | public function getPossibleErrors() { |
259 | 259 | return array_merge( parent::getPossibleErrors(), array( |
| 260 | + array( 'code' => 'missingparam', 'info' => 'One of the parameters title, pageid is required' ), |
| 261 | + array( 'code' => 'invalidparammix', 'info' => 'The parameters title, pageid can not be used together' ), |
260 | 262 | array( 'invalidtitle', 'title' ), |
261 | 263 | array( 'nosuchpageid', 'pageid' ), |
262 | 264 | array( 'notanarticle' ), |
Index: trunk/phase3/includes/api/ApiUpload.php |
— | — | @@ -474,10 +474,8 @@ |
475 | 475 | array( 'uploaddisabled' ), |
476 | 476 | array( 'invalid-session-key' ), |
477 | 477 | array( 'uploaddisabled' ), |
478 | | - array( 'badaccess-groups' ), |
479 | 478 | array( 'mustbeloggedin', 'upload' ), |
480 | 479 | array( 'badaccess-groups' ), |
481 | | - array( 'badaccess-groups' ), |
482 | 480 | array( 'code' => 'fetchfileerror', 'info' => '' ), |
483 | 481 | array( 'code' => 'nomodule', 'info' => 'No upload module set' ), |
484 | 482 | array( 'code' => 'empty-file', 'info' => 'The file you submitted was empty' ), |
— | — | @@ -486,6 +484,8 @@ |
487 | 485 | array( 'code' => 'overwrite', 'info' => 'Overwriting an existing file is not allowed' ), |
488 | 486 | array( 'code' => 'stashfailed', 'info' => 'Stashing temporary file failed' ), |
489 | 487 | array( 'code' => 'internal-error', 'info' => 'An internal error occurred' ), |
| 488 | + array( 'code' => 'missingparam', 'info' => 'One of the parameters sessionkey, file, url, statuskey is required' ), |
| 489 | + array( 'code' => 'invalidparammix', 'info' => 'The parameters sessionkey, file, url, statuskey can not be used together' ), |
490 | 490 | ) ); |
491 | 491 | } |
492 | 492 | |