diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php
index 9a9178fb917..a43adddfa71 100644
--- a/htdocs/admin/expedition.php
+++ b/htdocs/admin/expedition.php
@@ -277,18 +277,24 @@ if(is_dir($dir))
print $module->description;
- print '
';
+ print ' | ';
if (in_array($module->id, $mods))
{
- print img_tick();
- print ' | ';
- print 'id.'">'.$langs->trans("Disable").'';
+ if ($conf->global->EXPEDITION_ADDON != $name)
+ {
+ print 'id.'">';
+ print img_tick($langs->trans("Disable"));
+ print '';
+ }
+ else
+ {
+ print img_tick($langs->trans("Activated"));
+ }
}
else
{
- print ' | ';
print 'id.'">'.$langs->trans("Activate").'';
}
@@ -296,9 +302,9 @@ if(is_dir($dir))
// Default
print ' | ';
- if ($conf->global->EXPEDITION_ADDON == "$name")
+ if ($conf->global->EXPEDITION_ADDON == $name)
{
- print img_tick();
+ print img_tick($langs->trans("Activate"));
}
else
{
@@ -389,7 +395,7 @@ if(is_dir($dir))
if (in_array($name, $def))
{
print " | \n";
- if ($conf->global->EXPEDITION_ADDON_PDF != "$name")
+ if ($conf->global->EXPEDITION_ADDON_PDF != $name)
{
print '';
print img_tick($langs->trans("Disable"));
@@ -397,7 +403,7 @@ if(is_dir($dir))
}
else
{
- print img_tick($langs->trans("Enabled"));
+ print img_tick($langs->trans("Activated"));
}
print " | ";
}
@@ -410,7 +416,7 @@ if(is_dir($dir))
// Defaut
print "";
- if ($conf->global->EXPEDITION_ADDON_PDF == "$name")
+ if ($conf->global->EXPEDITION_ADDON_PDF == $name)
{
print img_tick($langs->trans("Default"));
}
|