Add array( 'show' ), to getPossibleErrors
authorSam Reed <reedy@users.mediawiki.org>
Thu, 25 Mar 2010 21:19:49 +0000 (21:19 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 25 Mar 2010 21:19:49 +0000 (21:19 +0000)
includes/api/ApiDelete.php
includes/api/ApiMove.php
includes/api/ApiProtect.php
includes/api/ApiRollback.php
includes/api/ApiUndelete.php
includes/api/ApiUpload.php

index 2d6debc..bb9e972 100644 (file)
@@ -231,6 +231,7 @@ class ApiDelete extends ApiBase {
                        array( 'nosuchpageid', 'pageid' ),
                        array( 'notanarticle' ),
                        array( 'hookaborted', 'error' ),
+                       array( 'show' ),
                ) );
        }
 
index 0def28e..f7836fa 100644 (file)
@@ -216,6 +216,7 @@ class ApiMove extends ApiBase {
                        array( 'notanarticle' ),
                        array( 'invalidtitle', 'to' ),
                        array( 'sharedfile-exists' ),
+                       array( 'show' ),
                ) );
        }
 
index cf593b9..dc5197a 100644 (file)
@@ -205,6 +205,7 @@ class ApiProtect extends ApiBase {
                        array( 'protect-invalidlevel', 'level' ),
                        array( 'invalidexpiry', 'expiry' ),
                        array( 'pastexpiry', 'expiry' ),
+                       array( 'show' ),
                ) );
        }
 
index e30a6c0..5220e72 100644 (file)
@@ -141,6 +141,7 @@ class ApiRollback extends ApiBase {
                        array( 'invalidtitle', 'title' ),
                        array( 'notanarticle' ),
                        array( 'invaliduser', 'user' ),
+                       array( 'show' ),
                ) );
        }
 
index c29916b..105474a 100644 (file)
@@ -147,6 +147,7 @@ class ApiUndelete extends ApiBase {
                        array( 'blockedtext' ),
                        array( 'invalidtitle', 'title' ),
                        array( 'cannotundelete' ),
+                       array( 'show' ),
                ) );
        }
 
index 4e8f1b7..89b18d8 100644 (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' ),