Followup r99224: add message to ApiBase::$messageMap too
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 14 Nov 2011 14:40:55 +0000 (14:40 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 14 Nov 2011 14:40:55 +0000 (14:40 +0000)
includes/api/ApiBase.php

index e84ce57..a0d8942 100644 (file)
@@ -1179,6 +1179,7 @@ abstract class ApiBase extends ContextSource {
                'copyuploaddisabled' => array( 'code' => 'copyuploaddisabled', 'info' => 'Uploads by URL is not enabled.  Make sure $wgAllowCopyUploads is set to true in LocalSettings.php.' ),
 
                'filename-tooshort' => array( 'code' => 'filename-tooshort', 'info' => 'The filename is too short' ),
+               'filename-toolong' => array( 'code' => 'filename-toolong', 'info' => 'The filename is too long' ),
                'illegal-filename' => array( 'code' => 'illegal-filename', 'info' => 'The filename is not allowed' ),
                'filetype-missing' => array( 'code' => 'filetype-missing', 'info' => 'The file is missing an extension' ),
        );