Fix delete of website
This commit is contained in:
parent
391bb9efc6
commit
a5edd530d2
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user