diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index fd0f5d580bb..24e397f2eae 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -102,7 +102,10 @@ foreach($modules as $const => $desc) print ''.$langs->trans($desc).''; print ''; - if($conf->global->FCKEDITOR_ENABLE_.$const == 1) + $constante = FCKEDITOR_ENABLE_.$const; + $value = $conf->global->$constante; + + if($value == 1) { print img_tick(); } @@ -110,11 +113,11 @@ foreach($modules as $const => $desc) print ''; print ''; - if($conf->global->FCKEDITOR_ENABLE_.$const == 0) + if($value == 0) { print ''.$langs->trans("Activate").''; } - else if($conf->global->FCKEDITOR_ENABLE_.$const == 1) + else if($value == 1) { print ''.$langs->trans("Disable").''; }