Fix: le choix de la méthode d'expédition était mal gérée
This commit is contained in:
parent
1bcf68d59c
commit
8c8c7a1fce
@ -277,18 +277,24 @@ if(is_dir($dir))
|
|||||||
|
|
||||||
print $module->description;
|
print $module->description;
|
||||||
|
|
||||||
print '</td><td align="center">';
|
print '</td><td colspan="2" align="center">';
|
||||||
|
|
||||||
if (in_array($module->id, $mods))
|
if (in_array($module->id, $mods))
|
||||||
{
|
{
|
||||||
print img_tick();
|
if ($conf->global->EXPEDITION_ADDON != $name)
|
||||||
print '</td><td align="center">';
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmethod&statut=0&module='.$name.'&moduleid='.$module->id.'">'.$langs->trans("Disable").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmethod&statut=0&module='.$name.'&moduleid='.$module->id.'">';
|
||||||
|
print img_tick($langs->trans("Disable"));
|
||||||
|
print '</a>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print img_tick($langs->trans("Activated"));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print ' </td><td align="center">';
|
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmethod&statut=1&module='.$name.'&moduleid='.$module->id.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmethod&statut=1&module='.$name.'&moduleid='.$module->id.'">'.$langs->trans("Activate").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,9 +302,9 @@ if(is_dir($dir))
|
|||||||
|
|
||||||
// Default
|
// Default
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->EXPEDITION_ADDON == "$name")
|
if ($conf->global->EXPEDITION_ADDON == $name)
|
||||||
{
|
{
|
||||||
print img_tick();
|
print img_tick($langs->trans("Activate"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -389,7 +395,7 @@ if(is_dir($dir))
|
|||||||
if (in_array($name, $def))
|
if (in_array($name, $def))
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
if ($conf->global->EXPEDITION_ADDON_PDF != "$name")
|
if ($conf->global->EXPEDITION_ADDON_PDF != $name)
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_tick($langs->trans("Disable"));
|
||||||
@ -397,7 +403,7 @@ if(is_dir($dir))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_tick($langs->trans("Activated"));
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
@ -410,7 +416,7 @@ if(is_dir($dir))
|
|||||||
|
|
||||||
// Defaut
|
// Defaut
|
||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->EXPEDITION_ADDON_PDF == "$name")
|
if ($conf->global->EXPEDITION_ADDON_PDF == $name)
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_tick($langs->trans("Default"));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user