Skip to content
Snippets Groups Projects
Commit 385fca79 authored by Regis Houssin's avatar Regis Houssin
Browse files

bugfix

parent 87ce9e1e
No related branches found
No related tags found
No related merge requests found
......@@ -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>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment