Fix: les apercus en PNG n'tait pas supprim si il y avait plusieurs pages

This commit is contained in:
Regis Houssin
2006-06-09 12:40:33 +00:00
parent 742eea08ca
commit 8179490359
3 changed files with 61 additions and 31 deletions

View File

@@ -181,6 +181,8 @@ class Commande
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
if (file_exists($file))
{
commande_delete_preview($this->db, $this->id);
if (!dol_delete_file($file))
{
$this->error=$langs->trans("ErrorCanNotDeleteFile",$file);