From a2c56fb129bb345d0ba48c7ded41a195e80f6791 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 25 Mar 2010 21:19:49 +0000 Subject: [PATCH] Add array( 'show' ), to getPossibleErrors --- includes/api/ApiDelete.php | 1 + includes/api/ApiMove.php | 1 + includes/api/ApiProtect.php | 1 + includes/api/ApiRollback.php | 1 + includes/api/ApiUndelete.php | 1 + includes/api/ApiUpload.php | 1 + 6 files changed, 6 insertions(+) diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 2d6debcd15..bb9e972137 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -231,6 +231,7 @@ class ApiDelete extends ApiBase { array( 'nosuchpageid', 'pageid' ), array( 'notanarticle' ), array( 'hookaborted', 'error' ), + array( 'show' ), ) ); } diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 0def28e226..f7836fa505 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -216,6 +216,7 @@ class ApiMove extends ApiBase { array( 'notanarticle' ), array( 'invalidtitle', 'to' ), array( 'sharedfile-exists' ), + array( 'show' ), ) ); } diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index cf593b97c0..dc5197a38c 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -205,6 +205,7 @@ class ApiProtect extends ApiBase { array( 'protect-invalidlevel', 'level' ), array( 'invalidexpiry', 'expiry' ), array( 'pastexpiry', 'expiry' ), + array( 'show' ), ) ); } diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index e30a6c09f6..5220e7240c 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -141,6 +141,7 @@ class ApiRollback extends ApiBase { array( 'invalidtitle', 'title' ), array( 'notanarticle' ), array( 'invaliduser', 'user' ), + array( 'show' ), ) ); } diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index c29916be92..105474a369 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -147,6 +147,7 @@ class ApiUndelete extends ApiBase { array( 'blockedtext' ), array( 'invalidtitle', 'title' ), array( 'cannotundelete' ), + array( 'show' ), ) ); } diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 4e8f1b78e1..89b18d8f06 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -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' ), -- 2.20.1