From 748a120b71848e84d97782b149dacfbb14075f31 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 23 May 2020 15:50:15 +0200 Subject: [PATCH] Show button for categories if module is enabled --- htdocs/website/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")).'">'; }