Fix delete of website

This commit is contained in:
Laurent Destailleur 2018-09-08 14:10:07 +02:00
parent 391bb9efc6
commit a5edd530d2

View File

@ -484,6 +484,14 @@ class Website extends CommonObject
}
}
if (! $error && ! empty($this->ref))
{
global $dolibarr_main_data_root;
$pathofwebsite=$dolibarr_main_data_root.'/website/'.$this->ref;
dol_delete_dir_recursive($pathofwebsite);
}
// Commit or rollback
if ($error) {
$this->db->rollback();