Fix show error message
This commit is contained in:
parent
926a9f68c4
commit
0fd3292715
@ -650,6 +650,9 @@ if ($dirins && $action == 'confirm_removefile' && !empty($module))
|
|||||||
$dirtodelete = $dirins.'/'.$dirnametodelete;
|
$dirtodelete = $dirins.'/'.$dirnametodelete;
|
||||||
|
|
||||||
$result = dol_delete_file($filetodelete);
|
$result = dol_delete_file($filetodelete);
|
||||||
|
if (! $result) {
|
||||||
|
setEventMessages($langs->trans("ErrorFailToDeleteFile", basename($filetodelete)), null, 'errors');
|
||||||
|
} else {
|
||||||
if (dol_is_dir_empty($dirtodelete)) dol_delete_dir($dirtodelete);
|
if (dol_is_dir_empty($dirtodelete)) dol_delete_dir($dirtodelete);
|
||||||
|
|
||||||
// Update descriptor file to comment file
|
// Update descriptor file to comment file
|
||||||
@ -661,6 +664,7 @@ if ($dirins && $action == 'confirm_removefile' && !empty($module))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Build the $fields array from SQL table (initfromtablename)
|
// Build the $fields array from SQL table (initfromtablename)
|
||||||
if ($dirins && $action == 'initobject' && $module && GETPOST('createtablearray', 'alpha'))
|
if ($dirins && $action == 'initobject' && $module && GETPOST('createtablearray', 'alpha'))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user