Przeglądaj źródła

- Fixed bug Trac #210 (Incorrect error message in case of uploading a file too big)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@660 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 lat temu
rodzic
commit
59f254dabf
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      application/utils.inc.php
  2. 1 1
      dictionaries/dictionary.itop.ui.php

+ 1 - 1
application/utils.inc.php

@@ -92,7 +92,7 @@ class utils
 				
 				case UPLOAD_ERR_FORM_SIZE:
 				case UPLOAD_ERR_INI_SIZE:
-				throw new FileUploadException(Dict::Format('UI:Error:UploadedFileTooBig'), ini_get('upload_max_filesize'));
+				throw new FileUploadException(Dict::Format('UI:Error:UploadedFileTooBig', ini_get('upload_max_filesize')));
 				break;
 
 				case UPLOAD_ERR_PARTIAL:

+ 1 - 1
dictionaries/dictionary.itop.ui.php

@@ -336,7 +336,7 @@ Dict::Add('EN US', 'English', 'English', array(
 	'UI:Error:IncorrectLinkDefinition_LinkedClass_Class' => 'Incorrect link definition: the class of objects to manage: %1$s was not found as an external key in the class %2$s',
 	'UI:Error:Object_Class_Id_NotFound' => 'Object: %1$s:%2$d not found.',
 	'UI:Error:WizardCircularReferenceInDependencies' => 'Error: Circular reference in the dependencies between the fields, check the data model.',
-	'UI:Error:UploadedFileTooBig' => 'Uploaded file is too big. (Max allowed size is %1$s. Check you PHP configuration for upload_max_filesize.',
+	'UI:Error:UploadedFileTooBig' => 'Uploaded file is too big. (Max allowed size is %1$s). Check you PHP configuration for upload_max_filesize.',
 	'UI:Error:UploadedFileTruncated.' => 'Uploaded file has been truncated !',
 	'UI:Error:NoTmpDir' => 'The temporary directory is not defined.',
 	'UI:Error:CannotWriteToTmp_Dir' => 'Unable to write the temporary file to the disk. upload_tmp_dir = "%1$s".',