Skip to content
Snippets Groups Projects
Commit f89d74d6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Deletion of dir was not complete.

parent 10f967e0
Branches
Tags
No related merge requests found
...@@ -1037,7 +1037,7 @@ class Expedition extends CommonObject ...@@ -1037,7 +1037,7 @@ class Expedition extends CommonObject
} }
if (file_exists($dir)) if (file_exists($dir))
{ {
if (!dol_delete_dir($dir)) if (!dol_delete_dir_recursive($dir))
{ {
$this->error=$langs->trans("ErrorCanNotDeleteDir",$dir); $this->error=$langs->trans("ErrorCanNotDeleteDir",$dir);
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment