Update website templates

This commit is contained in:
Laurent Destailleur 2019-12-02 09:19:05 +01:00
parent 7908e0cd26
commit 32a539a8c0
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -2124,7 +2124,7 @@ if (!GETPOST('hide_websitemenu'))
}
elseif (empty($virtualurl))
{
$htmltext .= '<br><span class="error">'.$langs->trans("VirtualHostUrlNotDefined").'</span><br><br>';
//$htmltext .= '<br><span class="error">'.$langs->trans("VirtualHostUrlNotDefined").'</span><br><br>';
}
else
{