More explanatory messages shown when an upload error happens (in continuation of...
authorHuji <huji@users.mediawiki.org>
Thu, 3 Jan 2008 17:43:51 +0000 (17:43 +0000)
committerHuji <huji@users.mediawiki.org>
Thu, 3 Jan 2008 17:43:51 +0000 (17:43 +0000)
includes/SpecialImport.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 61d7ef7..882363c 100644 (file)
@@ -857,6 +857,9 @@ class ImportStreamSource {
                                        return new WikiErrorMsg( 'importuploaderrorsize' );
                                case 3: # The uploaded file was only partially uploaded
                                        return new WikiErrorMsg( 'importuploaderrorpartial' );
+                           case 6: #Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.
+                               return new WikiErrorMsg( 'importuploaderrortemp' );
+                           # case else: # Currently impossible
                        }
                        
                }
index bb3a9fe..39c0f33 100644 (file)
@@ -2303,6 +2303,7 @@ All transwiki import actions are logged at the [[Special:Log/import|import log]]
 'importnofile'               => 'No import file was uploaded.',
 'importuploaderrorsize'      => 'Upload of import file failed. The file is bigger than the allowed upload size.',
 'importuploaderrorpartial'   => 'Upload of import file failed. The file was only partially uploaded.',
+'importuploaderrortemp'      => 'Upload of import file failed. A temporary folder is missing.',
 
 # Import log
 'importlogpage'                    => 'Import log',
index 9091665..4b60a33 100644 (file)
@@ -1555,6 +1555,7 @@ $wgMessageStructure = array(
                'importnofile',
                'importuploaderrorsize',
                'importuploaderrorpartial',
+               'importuploaderrortemp',
        ),
        'importlog' => array(
                'importlogpage',