Deletion of dir was not complete.

This commit is contained in:
Laurent Destailleur 2015-04-02 11:44:43 +02:00
parent 10f967e07a
commit f89d74d6bc

View File

@ -1037,7 +1037,7 @@ class Expedition extends CommonObject
}
if (file_exists($dir))
{
if (!dol_delete_dir($dir))
if (!dol_delete_dir_recursive($dir))
{
$this->error=$langs->trans("ErrorCanNotDeleteDir",$dir);
return 0;