diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index 49e1c4d0d55..2d3d1c80bfc 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2163,8 +2163,8 @@ $domainname = '0.0.0.0:8080';
$tempdir = $conf->website->dir_output.'/'.$websitekey.'/';
// Confirm generation of website sitemaps
-if($action == 'confirmgeneratesitemaps'){
- $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?website='.$website->ref, $langs->trans('ConfirmSitemapsCreation'), $langs->trans('ConfirmGenerateSitemaps', $object->ref),'generatesitemaps', '', "yes", 1);
+if ($action == 'confirmgeneratesitemaps'){
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?website='.$website->ref, $langs->trans('ConfirmSitemapsCreation'), $langs->trans('ConfirmGenerateSitemaps', $object->ref), 'generatesitemaps', '', "yes", 1);
$action = 'preview';
}
@@ -2210,7 +2210,7 @@ if ($action == 'generatesitemaps') {
}
}else {
dol_print_error($db);
- }
+ }
$action = 'preview';
}
@@ -2524,7 +2524,7 @@ if (!GETPOST('hide_websitemenu'))
print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("RegenerateWebsiteContent")).'">';
print ' ';
-
+
// Generate site map
print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("GenerateSitemaps")).'">';
@@ -3854,7 +3854,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') // Edit properties of
// Print formconfirm
if ($action == 'preview'){
- print $formconfirm;
+ print $formconfirm;
}
if ($action == 'editfile' || $action == 'file_manager')