diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 6b1058592d4..c3a1e9d3280 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -43,6 +43,7 @@ if ($_GET["action"] == 'set' && $user->admin)
$mesg='';
if ($result) $mesg=$result;
Header("Location: modules.php?spe=".$_GET["spe"]."&mesg=".urlencode($mesg));
+ exit;
}
if ($_GET["action"] == 'reset' && $user->admin)
@@ -51,6 +52,7 @@ if ($_GET["action"] == 'reset' && $user->admin)
$mesg='';
if ($result) $mesg=$result;
Header("Location: modules.php?spe=".$_GET["spe"]."&mesg=".urlencode($mesg));
+ exit;
}
@@ -242,7 +244,7 @@ foreach ($orders as $key => $value)
$modName = $nom[$key];
$objMod = $modules[$key];
- // On affiche pas module si en version 'development' et que
+ // On affiche pas les modules en version 'development' si
// constante MAIN_SHOW_DEVELOPMENT_MODULES non définie
if ($objMod->version == 'development' && ! $conf->global->MAIN_SHOW_DEVELOPMENT_MODULES)
{
@@ -256,7 +258,7 @@ foreach ($orders as $key => $value)
$atleastoneforfamily=0;
}
- if((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"]))
+ if ((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"]))
{
$atleastoneforfamily=1;
$var=!$var;
@@ -279,13 +281,13 @@ foreach ($orders as $key => $value)
print '
'.$objMod->getName();
print " | \n ";
print $objMod->getDesc();
- print " | \n ";
+ print " | \n ";
print $objMod->getVersion();
- print " | \n ";
+ print " | \n ";
print $objMod->getDbVersion();
- print " | \n ";
+ print " | \n ";
- if ($conf->global->$const_name == 1)
+ if ($conf->global->$const_name)
{
print img_tick();
}
@@ -294,9 +296,9 @@ foreach ($orders as $key => $value)
print " ";
}
- print " | \n ";
+ print " | \n ";
- if ($conf->global->$const_name == 1)
+ if ($conf->global->$const_name)
{
// Module actif
if ($family == 'base') print $langs->trans("Required");
@@ -304,19 +306,21 @@ foreach ($orders as $key => $value)
if ($objMod->config_page_url)
{
- if (is_array($objMod->config_page_url)) {
- print ' | ';
+ if (is_array($objMod->config_page_url))
+ {
+ print ' | ';
$i=0;
foreach ($objMod->config_page_url as $page)
{
if ($i++)
{
- print ''.ucfirst($page).' ';
+ print ''.img_picto(ucfirst($page),"setup").' ';
+ // print ''.ucfirst($page).' ';
}
else
{
//print ''.$langs->trans("Setup").' ';
- print ''.img_picto($langs->trans("Setup"),"setup").' ';
+ print ''.img_picto($langs->trans("Setup"),"setup").' ';
}
}
print " | \n";
@@ -324,7 +328,7 @@ foreach ($orders as $key => $value)
else
{
//print ' '.$langs->trans("Setup").' | ';
- print ' '.img_picto($langs->trans("Setup"),"setup").' | ';
+ print ' '.img_picto($langs->trans("Setup"),"setup").' | ';
}
}
else