From 7cf8d6cff74bdce63fa4eab90bcc66bb7d0719ac Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 12 May 2025 14:08:31 +0200 Subject: [PATCH] Clean code - removed not used options --- htdocs/admin/website.php | 2 ++ htdocs/admin/website_options.php | 26 ++++---------------------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/htdocs/admin/website.php b/htdocs/admin/website.php index ed762155d01..00476f1d847 100644 --- a/htdocs/admin/website.php +++ b/htdocs/admin/website.php @@ -424,10 +424,12 @@ $head[$h][1] = $langs->trans("WebSites"); $head[$h][2] = 'website'; $h++; +/* disable, no option for the moment $head[$h][0] = DOL_URL_ROOT."/admin/website_options.php"; $head[$h][1] = $langs->trans("Options"); $head[$h][2] = 'options'; $h++; +*/ print dol_get_fiche_head($head, 'website', '', -1); diff --git a/htdocs/admin/website_options.php b/htdocs/admin/website_options.php index 4cb3f9c6120..43dc95dd26f 100644 --- a/htdocs/admin/website_options.php +++ b/htdocs/admin/website_options.php @@ -63,7 +63,7 @@ $pagenext = $page + 1; // Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context $hookmanager->initHooks(array('admin')); -$arrayofparameters = array('WEBSITE_USE_WEBSITE_ACCOUNTS'=>array('css'=>'minwidth200')); +$arrayofparameters = array(); $status = 1; $rowid = GETPOST('rowid', 'alpha'); @@ -114,10 +114,12 @@ $head[$h][1] = $langs->trans("WebSites"); $head[$h][2] = 'website'; $h++; +/* disable, no option for the moment $head[$h][0] = DOL_URL_ROOT."/admin/website_options.php"; $head[$h][1] = $langs->trans("Options"); $head[$h][2] = 'options'; $h++; +*/ print dol_get_fiche_head($head, 'options', '', -1); @@ -131,27 +133,7 @@ print ' '; print ''."\n"; print ''; - -// Mail required for users - -print ''; -print ''; -print $form->textwithpicto($langs->trans('WEBSITE_USE_WEBSITE_ACCOUNTS'), $langs->trans('WEBSITE_USE_WEBSITE_ACCOUNTSTooltip')); -print ''; -print ' '; - -print ''; -if (!empty($conf->use_javascript_ajax)) { - print ajax_constantonoff('WEBSITE_USE_WEBSITE_ACCOUNTS'); -} else { - if (!getDolGlobalString('WEBSITE_USE_WEBSITE_ACCOUNTS')) { - print ''.img_picto($langs->trans("Disabled"), 'off').''; - } else { - print ''.img_picto($langs->trans("Enabled"), 'on').''; - } -} -print ''; - +// ... print '';