mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Clean code
This commit is contained in:
parent
695342731c
commit
6a3f044ba2
|
|
@ -1468,12 +1468,9 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disable
|
|||
*/
|
||||
function dol_delete_file($file, $disableglob = 0, $nophperrors = 0, $nohook = 0, $object = null, $allowdotdot = false, $indexdatabase = 1, $nolog = 0)
|
||||
{
|
||||
global $db, $user, $langs;
|
||||
global $db, $user;
|
||||
global $hookmanager;
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('other', 'errors'));
|
||||
|
||||
if (empty($nolog)) {
|
||||
dol_syslog("dol_delete_file file=".$file." disableglob=".$disableglob." nophperrors=".$nophperrors." nohook=".$nohook);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user