From 385fca79031c8a169eaa01ac9bd1bdac04d33fc0 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sat, 22 Jul 2006 13:07:02 +0000 Subject: [PATCH] bugfix --- htdocs/admin/fckeditor.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 '<td>'.$langs->trans($desc).'</td>'; print '<td align="center" width="20">'; - 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 '</td>'; print '<td align="center" width="100">'; - if($conf->global->FCKEDITOR_ENABLE_.$const == 0) + if($value == 0) { print '<a href="fckeditor.php?action=activate_'.strtolower($const).'">'.$langs->trans("Activate").'</a>'; } - else if($conf->global->FCKEDITOR_ENABLE_.$const == 1) + else if($value == 1) { print '<a href="fckeditor.php?action=disable_'.strtolower($const).'">'.$langs->trans("Disable").'</a>'; } -- GitLab