dol_delete_files(): removed unused variables
This commit is contained in:
parent
7b542731a1
commit
b91d1fa0ca
@ -802,7 +802,7 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disable
|
||||
*/
|
||||
function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=null)
|
||||
{
|
||||
global $db, $conf, $user, $langs;
|
||||
global $langs;
|
||||
global $hookmanager;
|
||||
|
||||
$langs->load("other");
|
||||
@ -829,8 +829,6 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=n
|
||||
}
|
||||
else
|
||||
{
|
||||
$error=0;
|
||||
|
||||
//print "x".$file." ".$disableglob;exit;
|
||||
$ok=false;
|
||||
$file_osencoded=dol_osencode($file); // New filename encoded in OS filesystem encoding charset
|
||||
|
||||
Loading…
Reference in New Issue
Block a user