public function getPossibleErrors() {
return array_merge( parent::getPossibleErrors(), array(
+ array( 'code' => 'missingparam', 'info' => 'One of the parameters title, pageid is required' ),
+ array( 'code' => 'invalidparammix', 'info' => 'The parameters title, pageid can not be used together' ),
array( 'invalidtitle', 'title' ),
array( 'nosuchpageid', 'pageid' ),
array( 'notanarticle' ),
public function getPossibleErrors() {
return array_merge( parent::getPossibleErrors(), array(
+ array( 'code' => 'missingparam', 'info' => 'One of the parameters from, fromid is required' ),
+ array( 'code' => 'invalidparammix', 'info' => 'The parameters from, fromid can not be used together' ),
array( 'invalidtitle', 'from' ),
array( 'nosuchpageid', 'fromid' ),
array( 'notanarticle' ),
array( 'uploaddisabled' ),
array( 'invalid-session-key' ),
array( 'uploaddisabled' ),
- array( 'badaccess-groups' ),
array( 'mustbeloggedin', 'upload' ),
array( 'badaccess-groups' ),
- array( 'badaccess-groups' ),
array( 'code' => 'fetchfileerror', 'info' => '' ),
array( 'code' => 'nomodule', 'info' => 'No upload module set' ),
array( 'code' => 'empty-file', 'info' => 'The file you submitted was empty' ),
array( 'code' => 'overwrite', 'info' => 'Overwriting an existing file is not allowed' ),
array( 'code' => 'stashfailed', 'info' => 'Stashing temporary file failed' ),
array( 'code' => 'internal-error', 'info' => 'An internal error occurred' ),
+ array( 'code' => 'missingparam', 'info' => 'One of the parameters sessionkey, file, url, statuskey is required' ),
+ array( 'code' => 'invalidparammix', 'info' => 'The parameters sessionkey, file, url, statuskey can not be used together' ),
) );
}