2013-09-25 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager/lib/functions.php: changed the code to show better info about the error when upload a oum with a size biggest than the PHP limit. MERGED FROM THE BRANCH PANDORA_4.0 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8814 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
920287f125
commit
c974d7ebf9
|
@ -1,3 +1,11 @@
|
|||
2013-09-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* extensions/update_manager/lib/functions.php: changed the code
|
||||
to show better info about the error when upload a oum with a size
|
||||
biggest than the PHP limit.
|
||||
|
||||
MERGED FROM THE BRANCH PANDORA_4.0
|
||||
|
||||
2013-09-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* extensions/update_manager/lib/libupdate_manager_client.php: fixed
|
||||
|
|
|
@ -572,7 +572,18 @@ function install_offline_enterprise_package(&$settings, $user_key) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
ui_print_error_message(__('File cannot be uploaded'));
|
||||
//Check if the file is biggest than the limit in PHP
|
||||
if ($_FILES["fileloaded"]["error"] === 1) {
|
||||
$upload_max_filesize = ini_get('upload_max_filesize');
|
||||
|
||||
ui_print_error_message(
|
||||
sprintf(
|
||||
__('File is more biggest than the PHP limit (%s). Please change it in PHP configuration.'),
|
||||
$upload_max_filesize));
|
||||
}
|
||||
else {
|
||||
ui_print_error_message(__('File cannot be uploaded'));
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue