diff --git a/htdocs/website/index.php b/htdocs/website/index.php index ed2801c2820..969c56dde8c 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2273,7 +2273,11 @@ if (!GETPOST('hide_websitemenu')) */ print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("ReplaceWebsiteContent")).'">'; - print ''; + + if (! empty($conf->categorie->enabled)) { + print ''; + } + if (! empty($conf->global->WEBSITE_ADD_REGENERATE_BUTTON)) { print 'ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("RegenerateWebsiteContent")).'">'; }