(bug 9250) Remove hardcoded minimum image name length of three characters. Message...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 24 Jun 2007 22:34:30 +0000 (22:34 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 24 Jun 2007 22:34:30 +0000 (22:34 +0000)
RELEASE-NOTES
includes/SpecialUpload.php
languages/messages/MessagesEn.php
languages/messages/MessagesHe.php

index 92c2f9b..f3493d9 100644 (file)
@@ -100,6 +100,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 10326) AJAX-based page watching and unwatching has been cleaned up and
   enabled by default.
 * Added option to install to MyISAM
+* (bug 9250) Remove hardcoded minimum image name length of three characters
 
 == Bugfixes since 1.10 ==
 
index 112e4ec..ff8091b 100644 (file)
@@ -308,8 +308,8 @@ class UploadForm {
                                $partname .= '.' . $ext[$i];
                }
 
-               if( strlen( $partname ) < 3 ) {
-                       $this->mainUploadForm( wfMsgHtml( 'minlength' ) );
+               if( strlen( $partname ) < 1 ) {
+                       $this->mainUploadForm( wfMsgHtml( 'minlength1' ) );
                        return;
                }
 
index 7f21d1b..bd3d886 100644 (file)
@@ -1361,7 +1361,7 @@ To include the image in a page, use a link in the form
 'uploadedfiles'               => 'Uploaded files',
 'ignorewarning'               => 'Ignore warning and save file anyway.',
 'ignorewarnings'              => 'Ignore any warnings',
-'minlength'                   => 'File names must be at least three letters.',
+'minlength1'                  => 'File names must be at least one letter.',
 'illegalfilename'             => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.',
 'badfilename'                 => 'File name has been changed to "$1".',
 'filetype-badmime'            => 'Files of the MIME type "$1" are not allowed to be uploaded.',
index 07153e8..288d90a 100644 (file)
@@ -1025,7 +1025,7 @@ $messages = array(
 'uploadedfiles'               => 'קבצים שהועלו',
 'ignorewarning'               => 'התעלם מהאזהרה ושמור את הקובץ בכל זאת.',
 'ignorewarnings'              => 'התעלם מכל האזהרות',
-'minlength'                   => 'שמות של קבצי תמונה צריכים להיות בני שלושה תווים לפחות.',
+'minlength1'                  => 'שמות של קבצי תמונה צריכים להיות בני תו אחד לפחות.',
 'illegalfilename'             => 'הקובץ "$1" מכיל תוים בלתי חוקיים. אנא שנו את שמו ונסו להעלותו שנית.',
 'badfilename'                 => 'שם התמונה שונה ל־"$1".',
 'filetype-badmime'            => 'לא ניתן להעלות קבצים עם סוג ה־MIME "$1".',