diff --git a/htdocs/ftp/index.php b/htdocs/ftp/index.php index 5ff4356820c..06f2d657553 100644 --- a/htdocs/ftp/index.php +++ b/htdocs/ftp/index.php @@ -172,6 +172,7 @@ if ($_REQUEST['action'] == 'confirm_deletefile' && $_REQUEST['confirm'] == 'yes' $newremotefileiso=utf8_decode($remotefile); //print "x".$newremotefileiso; + dol_syslog("ftp/index.php ftp_delete ".$newremotefileiso); $result=ftp_delete($conn_id, $newremotefileiso); if ($result) { @@ -179,6 +180,7 @@ if ($_REQUEST['action'] == 'confirm_deletefile' && $_REQUEST['confirm'] == 'yes' } else { + dol_syslog("ftp/index.php ftp_delete", LOG_ERR); $mesg = '
'.$langs->trans("FTPFailedToRemoveFile",$file).'
'; } @@ -473,7 +475,9 @@ else } else if ($is_link) { - print ' '; + $newfile=$file; + $newfile=preg_replace('/ ->.*/','',$newfile); + print ''.img_delete().''; } else {