FIX error management of zip extension not found
This commit is contained in:
parent
3d9cb3e411
commit
cee45b9808
@ -451,9 +451,7 @@ if (empty($dirfortmpfile)) {
|
|||||||
if ($result && $action == "dl" && !$error) {
|
if ($result && $action == "dl" && !$error) {
|
||||||
if (!extension_loaded('zip')) {
|
if (!extension_loaded('zip')) {
|
||||||
setEventMessages('PHPZIPExtentionNotLoaded', null, 'errors');
|
setEventMessages('PHPZIPExtentionNotLoaded', null, 'errors');
|
||||||
exit;
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
dol_mkdir($dirfortmpfile);
|
dol_mkdir($dirfortmpfile);
|
||||||
|
|
||||||
$log = $langs->transnoentitiesnoconv("Type");
|
$log = $langs->transnoentitiesnoconv("Type");
|
||||||
@ -534,6 +532,7 @@ if ($result && $action == "dl" && !$error) {
|
|||||||
setEventMessages($langs->trans("FailedToOpenFile", $zipname), null, 'errors');
|
setEventMessages($langs->trans("FailedToOpenFile", $zipname), null, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user