Index: branches/uploadwizard/phase3/includes/api/ApiBase.php |
— | — | @@ -1012,6 +1012,7 @@ |
1013 | 1013 | |
1014 | 1014 | // uploadMsgs |
1015 | 1015 | 'invalid-session-key' => array( 'code' => 'invalid-session-key', 'info' => 'Not a valid session key' ), |
| 1016 | + 'invalidsessiondata' => array( 'code' => 'invalidsessiondata', 'info' => 'Session data for that key was bad or illegal' ), |
1016 | 1017 | 'nouploadmodule' => array( 'code' => 'nouploadmodule', 'info' => 'No upload module set' ), |
1017 | 1018 | 'uploaddisabled' => array( 'code' => 'uploaddisabled', 'info' => 'Uploads are not enabled. Make sure $wgEnableUploads is set to true in LocalSettings.php and the PHP ini setting file_uploads is true' ), |
1018 | 1019 | 'copyuploaddisabled' => array( 'code' => 'copyuploaddisabled', 'info' => 'Uploads by URL is not enabled. Make sure $wgAllowCopyUploads is set to true in LocalSettings.php.' ), |
Index: branches/uploadwizard/extensions/UploadWizard/ApiQueryStashImageInfo.php |
— | — | @@ -54,9 +54,9 @@ |
55 | 55 | } catch ( SessionStashNotAvailableException $e ) { |
56 | 56 | $this->dieUsage( "Session not available: " . $e->getMessage(), "nosession" ); |
57 | 57 | } catch ( SessionStashFileNotFoundException $e ) { |
58 | | - $this->dieUsage( "File not found: " . $e->getMessage(), "nosuchpageid" ); |
| 58 | + $this->dieUsage( "File not found: " . $e->getMessage(), "invalidsessiondata" ); |
59 | 59 | } catch ( SessionStashBadPathException $e ) { |
60 | | - $this->dieUsage( "Bad path: " . $e->getMessage(), "nosuchpageid" ); |
| 60 | + $this->dieUsage( "Bad path: " . $e->getMessage(), "invalidsessiondata" ); |
61 | 61 | } |
62 | 62 | |
63 | 63 | } |