Add array( 'show' ), to getPossibleErrors
This commit is contained in:
parent
f757b2bc7e
commit
a2c56fb129
6 changed files with 6 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ class ApiDelete extends ApiBase {
|
|||
array( 'nosuchpageid', 'pageid' ),
|
||||
array( 'notanarticle' ),
|
||||
array( 'hookaborted', 'error' ),
|
||||
array( 'show' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ class ApiMove extends ApiBase {
|
|||
array( 'notanarticle' ),
|
||||
array( 'invalidtitle', 'to' ),
|
||||
array( 'sharedfile-exists' ),
|
||||
array( 'show' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ class ApiProtect extends ApiBase {
|
|||
array( 'protect-invalidlevel', 'level' ),
|
||||
array( 'invalidexpiry', 'expiry' ),
|
||||
array( 'pastexpiry', 'expiry' ),
|
||||
array( 'show' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ class ApiRollback extends ApiBase {
|
|||
array( 'invalidtitle', 'title' ),
|
||||
array( 'notanarticle' ),
|
||||
array( 'invaliduser', 'user' ),
|
||||
array( 'show' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ class ApiUndelete extends ApiBase {
|
|||
array( 'blockedtext' ),
|
||||
array( 'invalidtitle', 'title' ),
|
||||
array( 'cannotundelete' ),
|
||||
array( 'show' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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' ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue