Add more information

This commit is contained in:
Laurent Destailleur 2010-10-22 00:38:16 +00:00
parent 97f622c41b
commit 91f40e4b5f

View File

@ -466,7 +466,7 @@ class Menubase
$title=$langs->trans($objm->titre);
if ($title == $objm->titre) // Translation not found
{
if (! empty($objm->langs)) // If there is a dedicated translation file
if (! empty($objm->langs)) // If there is a dedicated translation file
{
$langs->load($objm->langs);
}
@ -513,6 +513,7 @@ class Menubase
else $tabMenu[$b]['right'] = ($tabMenu[$b]['right'] && $perms);
if (! isset($tabMenu[$b]['enabled'])) $tabMenu[$b]['enabled'] = $enabled;
else $tabMenu[$b]['enabled'] = ($tabMenu[$b]['enabled'] && $enabled);
$tabMenu[$b]['lang'] = $objm->langs;
//var_dump($tabMenu);
$a++;