Add array( 'show' ), to getPossibleErrors

This commit is contained in:
Sam Reed 2010-03-25 21:19:49 +00:00
parent f757b2bc7e
commit a2c56fb129
6 changed files with 6 additions and 0 deletions

View file

@ -231,6 +231,7 @@ class ApiDelete extends ApiBase {
array( 'nosuchpageid', 'pageid' ),
array( 'notanarticle' ),
array( 'hookaborted', 'error' ),
array( 'show' ),
) );
}

View file

@ -216,6 +216,7 @@ class ApiMove extends ApiBase {
array( 'notanarticle' ),
array( 'invalidtitle', 'to' ),
array( 'sharedfile-exists' ),
array( 'show' ),
) );
}

View file

@ -205,6 +205,7 @@ class ApiProtect extends ApiBase {
array( 'protect-invalidlevel', 'level' ),
array( 'invalidexpiry', 'expiry' ),
array( 'pastexpiry', 'expiry' ),
array( 'show' ),
) );
}

View file

@ -141,6 +141,7 @@ class ApiRollback extends ApiBase {
array( 'invalidtitle', 'title' ),
array( 'notanarticle' ),
array( 'invaliduser', 'user' ),
array( 'show' ),
) );
}

View file

@ -147,6 +147,7 @@ class ApiUndelete extends ApiBase {
array( 'blockedtext' ),
array( 'invalidtitle', 'title' ),
array( 'cannotundelete' ),
array( 'show' ),
) );
}

View file

@ -312,6 +312,7 @@ class ApiUpload extends ApiBase {
array( 'mustbeloggedin', 'upload' ),
array( 'badaccess-groups' ),
array( 'badaccess-groups' ),
array( 'show' ),
array( 'code' => 'fetchfileerror', 'info' => '' ),
array( 'code' => 'nomodule', 'info' => 'No upload module set' ),
array( 'code' => 'empty-file', 'info' => 'The file you submitted was empty' ),