diff --git a/htdocs/core/modules/modWebsite.class.php b/htdocs/core/modules/modWebsite.class.php index 52c25f2450e..dc19ce2e29b 100644 --- a/htdocs/core/modules/modWebsite.class.php +++ b/htdocs/core/modules/modWebsite.class.php @@ -189,7 +189,7 @@ class modWebsite extends DolibarrModules $src=$srcroot.'/'.$cursorfile['name']; $dest=$destroot.'/'.$cursorfile['name']; - $result=dol_copy($src, $dest, 0, 0); + $result=dol_copy($src, $dest, 0, 1); // For full zip templates, we overwrite old existing files if ($result < 0) { $langs->load("errors"); $this->error=$langs->trans('ErrorFailToCopyFile', $src, $dest); diff --git a/htdocs/website/index.php b/htdocs/website/index.php index dff0dd70175..ef05483d705 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2124,7 +2124,7 @@ if (!GETPOST('hide_websitemenu')) } elseif (empty($virtualurl)) { - $htmltext .= '
'.$langs->trans("VirtualHostUrlNotDefined").'

'; + //$htmltext .= '
'.$langs->trans("VirtualHostUrlNotDefined").'

'; } else {