From 4a873917ceb0593f8a9423a6c940724b362a2196 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Dec 2018 12:40:36 +0100 Subject: [PATCH] Fix import --- htdocs/website/class/website.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index e8e04b641a3..26231534f67 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -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();