From d6e1ccfee39018fa90dfab67c7b8c910e36cf3b3 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 5 Aug 2010 12:21:50 +0000 Subject: [PATCH] - Fixed bug Trac #210 (Incorrect error message in case of uploading a file too big) SVN:trunk[660] --- application/utils.inc.php | 2 +- dictionaries/dictionary.itop.ui.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/utils.inc.php b/application/utils.inc.php index 16de6f929..635eaae4d 100644 --- a/application/utils.inc.php +++ b/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: diff --git a/dictionaries/dictionary.itop.ui.php b/dictionaries/dictionary.itop.ui.php index d023216f0..760677e1b 100644 --- a/dictionaries/dictionary.itop.ui.php +++ b/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".',