Skip to content
Snippets Groups Projects
Commit ad2b5f64 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Restore backward compatibility with old modules

parent 58fffb9a
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,6 @@ foreach ($conf->file->dol_document_root as $dirroot)
$modulequalified=1;
// We discard modules that does not respect constraint on menu handlers
//if (! empty($objMod->needleftmenu) && sizeof($objMod->needleftmenu) && ! in_array($conf->left_menu,$objMod->needleftmenu)) $modulequalified=0;
if (! empty($objMod->needtopmenu) && sizeof($objMod->needtopmenu) && ! in_array($conf->top_menu,$objMod->needtopmenu)) $modulequalified=0;
// We discard modules according to features level (PS: if module is activated we always show it)
......
......@@ -90,8 +90,6 @@ $var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentTheme").'</td><td colspan="2">'.$conf->theme."</td></tr>\n";
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentMenuHandler").'</td><td colspan="2">'.$conf->top_menu."</td></tr>\n";
//$var=!$var;
//print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentLeftMenuHandler").'</td><td colspan="2">'.$conf->left_menu."</td></tr>\n";
print '</table>';
print '<br>';
......
......@@ -84,6 +84,7 @@ function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0
$db->free($resql);
}
left_menu('', $help_url, '', $menu->liste);
left_menu('', $help_url, '', $menu->liste, 1);
main_area();
}
?>
......@@ -96,7 +96,8 @@ function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0
$db->free($resql);
}
left_menu('', $help_url, '', $menu->liste);
left_menu('', $help_url, '', $menu->liste, 1);
main_area();
}
?>
......@@ -53,6 +53,7 @@ function llxHeader($head = '', $title='', $help_url='', $morehtml='')
}
left_menu($menu->liste, $help_url, $morehtml, '');
left_menu($menu->liste, $help_url, $morehtml, '', 1);
main_area();
}
?>
......@@ -105,7 +105,6 @@ foreach ($dirlist as $dirroot)
$modulequalified=1;
// We discard modules that does not respect constraint on menu handlers
//if ($objMod->needleftmenu && sizeof($objMod->needleftmenu) && ! in_array($conf->left_menu,$objMod->needleftmenu)) $modulequalified=0;
if ($objMod->needtopmenu && sizeof($objMod->needtopmenu) && ! in_array($conf->top_menu,$objMod->needtopmenu)) $modulequalified=0;
// We discard modules according to features level (PS: if module is activated we always show it)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment