dol_delete_files(): removed unused variables

This commit is contained in:
Raphaël Doursenaud 2014-03-25 10:58:35 +01:00
parent 7b542731a1
commit b91d1fa0ca

View File

@ -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) function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=null)
{ {
global $db, $conf, $user, $langs; global $langs;
global $hookmanager; global $hookmanager;
$langs->load("other"); $langs->load("other");
@ -829,8 +829,6 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=n
} }
else else
{ {
$error=0;
//print "x".$file." ".$disableglob;exit; //print "x".$file." ".$disableglob;exit;
$ok=false; $ok=false;
$file_osencoded=dol_osencode($file); // New filename encoded in OS filesystem encoding charset $file_osencoded=dol_osencode($file); // New filename encoded in OS filesystem encoding charset