From: Huji Date: Thu, 3 Jan 2008 17:43:51 +0000 (+0000) Subject: More explanatory messages shown when an upload error happens (in continuation of... X-Git-Tag: 1.31.0-rc.0~50162 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=5ef3fb69e7a42eb37ff2af54b4ea534873389340;p=lhc%2Fweb%2Fwiklou.git More explanatory messages shown when an upload error happens (in continuation of r29220). --- diff --git a/includes/SpecialImport.php b/includes/SpecialImport.php index 61d7ef780b..882363c6c3 100644 --- a/includes/SpecialImport.php +++ b/includes/SpecialImport.php @@ -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 } } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index bb3a9febf5..39c0f333cb 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 9091665a1d..4b60a33814 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1555,6 +1555,7 @@ $wgMessageStructure = array( 'importnofile', 'importuploaderrorsize', 'importuploaderrorpartial', + 'importuploaderrortemp', ), 'importlog' => array( 'importlogpage',