Fix import

This commit is contained in:
Laurent Destailleur 2018-12-04 12:40:36 +01:00
parent 7c46ace042
commit 4a873917ce

View File

@ -1067,6 +1067,10 @@ class Website extends CommonObject
}
}
// Regenerate index page to point to new index page
$pathofwebsite = $conf->website->dir_output.'/'.$object->ref;
dolSaveIndexPage($pathofwebsite, $pathofwebsite.'/index.php', $pathofwebsite.'/page'.$object->fk_default_home.'.tpl.php', $pathofwebsite.'/wrapper.php');
if ($error)
{
$this->db->rollback();