Fix restore option MAIN_OPTIMIZEFORCOLORBLIND

This commit is contained in:
Laurent Destailleur
2022-09-13 15:37:54 +02:00
parent 7aa8fa98ec
commit 6ecd862a88
2 changed files with 3 additions and 3 deletions

View File

@@ -6634,7 +6634,7 @@ class Form
}
// Add a "Now" link
if ($conf->use_javascript_ajax && $addnowlink) {
if (!empty($conf->use_javascript_ajax) && $addnowlink) {
// Script which will be inserted in the onClick of the "Now" link
$reset_scripts = "";
if ($addnowlink == 2) { // local computer time

View File

@@ -1099,8 +1099,8 @@ function showSkins($fuser, $edit = 0, $foruserprofile = false)
}
// Use MAIN_OPTIMIZEFORTEXTBROWSER
if ($foruserprofile && !empty($fuser->conf->MAIN_OPTIMIZEFORCOLORBLIND)) {
// Use MAIN_OPTIMIZEFORCOLORBLIND
if ($foruserprofile) {
//$default=yn($conf->global->MAIN_OPTIMIZEFORCOLORBLIND);
$default = $langs->trans('No');
print '<tr class="oddeven">';