* (bug 33733) API: Unknown error: mustbeloggedin
authorSam Reed <reedy@users.mediawiki.org>
Sat, 14 Jan 2012 23:45:21 +0000 (23:45 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 14 Jan 2012 23:45:21 +0000 (23:45 +0000)
Add message to messagemap

includes/api/ApiBase.php

index 2cda312..133339a 100644 (file)
@@ -1236,6 +1236,8 @@ abstract class ApiBase extends ContextSource {
                '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' ),
+
+               'mustbeloggedin' => array( 'code' => 'mustbeloggedin', 'info' => 'You must be logged in to $1.' )
        );
 
        /**