Fix: uniformize code

This commit is contained in:
Regis Houssin
2012-06-11 21:42:19 +02:00
parent fb15ea20c6
commit 548266d607
11 changed files with 240 additions and 98 deletions

View File

@@ -2294,7 +2294,7 @@ class Commande extends CommonObject
}
if (file_exists($dir))
{
if (! dol_delete_dir($dir))
if (! dol_delete_dir_recursive($dir))
{
$this->error=$langs->trans("ErrorCanNotDeleteDir",$dir);
$this->db->rollback();