Skip to content

Commit

Permalink
dol_delete_files(): removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoursenaud committed May 5, 2015
1 parent 7b54273 commit b91d1fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions htdocs/core/lib/files.lib.php
Expand Up @@ -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");
Expand All @@ -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
Expand Down

0 comments on commit b91d1fa

Please sign in to comment.