Fix: Dans gestion menu top par defaut, on pouvait avoir le menu projet et webcalendar sélectionnés tous les deux.
This commit is contained in:
parent
7db7a38b21
commit
f5494dbc82
@ -167,8 +167,11 @@ class MenuTop {
|
|||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
|
|
||||||
$class="";
|
$class="";
|
||||||
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "product")
|
||||||
if (ereg("^".DOL_URL_ROOT."\/projet\/",$_SERVER["PHP_SELF"]))
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
if (ereg("^".DOL_URL_ROOT."\/projet\/[^w]",$_SERVER["PHP_SELF"]))
|
||||||
{
|
{
|
||||||
$class='class="tmenu" id="sel"';
|
$class='class="tmenu" id="sel"';
|
||||||
}
|
}
|
||||||
@ -178,7 +181,7 @@ class MenuTop {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$chaine.=$langs->trans("Projects");
|
$chaine.=$langs->trans("Projects");
|
||||||
print '<a '.$class.' href="'.DOL_URL_ROOT.'/projet/">'.$chaine.'</a>';
|
print '<a '.$class.' href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project">'.$chaine.'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée produit/service
|
// Entrée produit/service
|
||||||
@ -263,7 +266,6 @@ class MenuTop {
|
|||||||
print '<a '.$class.' href="'.DOL_URL_ROOT.'/energie/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a>';
|
print '<a '.$class.' href="'.DOL_URL_ROOT.'/energie/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Entrée webcal
|
// Entrée webcal
|
||||||
if ($conf->webcal->enabled)
|
if ($conf->webcal->enabled)
|
||||||
{
|
{
|
||||||
@ -274,7 +276,7 @@ class MenuTop {
|
|||||||
{
|
{
|
||||||
$class='class="tmenu" id="sel"';
|
$class='class="tmenu" id="sel"';
|
||||||
}
|
}
|
||||||
elseif (ereg("^".DOL_URL_ROOT."\/projet\/",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/webcalendar\/",$_SERVER["PHP_SELF"]))
|
elseif (ereg("^".DOL_URL_ROOT.".*\/webcal",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/webcalendar\/",$_SERVER["PHP_SELF"]))
|
||||||
{
|
{
|
||||||
$class='class="tmenu" id="sel"';
|
$class='class="tmenu" id="sel"';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user