r29221 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29220‎ | r29221 | r29222 >
Date:17:43, 3 January 2008
Author:huji
Status:old
Tags:
Comment:
More explanatory messages shown when an upload error happens (in continuation of r29220).
Modified paths:
  • /trunk/phase3/includes/SpecialImport.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -1555,6 +1555,7 @@
15561556 'importnofile',
15571557 'importuploaderrorsize',
15581558 'importuploaderrorpartial',
 1559+ 'importuploaderrortemp',
15591560 ),
15601561 'importlog' => array(
15611562 'importlogpage',
Index: trunk/phase3/includes/SpecialImport.php
@@ -857,6 +857,9 @@
858858 return new WikiErrorMsg( 'importuploaderrorsize' );
859859 case 3: # The uploaded file was only partially uploaded
860860 return new WikiErrorMsg( 'importuploaderrorpartial' );
 861+ case 6: #Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.
 862+ return new WikiErrorMsg( 'importuploaderrortemp' );
 863+ # case else: # Currently impossible
861864 }
862865
863866 }
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2303,6 +2303,7 @@
23042304 'importnofile' => 'No import file was uploaded.',
23052305 'importuploaderrorsize' => 'Upload of import file failed. The file is bigger than the allowed upload size.',
23062306 'importuploaderrorpartial' => 'Upload of import file failed. The file was only partially uploaded.',
 2307+'importuploaderrortemp' => 'Upload of import file failed. A temporary folder is missing.',
23072308
23082309 # Import log
23092310 'importlogpage' => 'Import log',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r29220More explanatory messages shown when an upload error happens.huji17:37, 3 January 2008

Status & tagging log