From 52aef36f1844ab83139a31bd5369ef4d4f85ce94 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 11 Mar 2003 19:19:07 +0000 Subject: [PATCH] Ajout de tests sur les modules pour les menus --- htdocs/pre.inc.php3 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/htdocs/pre.inc.php3 b/htdocs/pre.inc.php3 index 3abffe380f5..e2251dee3c4 100644 --- a/htdocs/pre.inc.php3 +++ b/htdocs/pre.inc.php3 @@ -84,13 +84,22 @@ function llxHeader($head = "") { $menu->add("/commande/", "Commandes"); } - $menu->add("/compta/dons/", "Dons"); + if ($conf->don->enabled) + { + $menu->add("/compta/dons/", "Dons"); + } - $menu->add("/fourn/index.php3", "Fournisseurs"); + if ($conf->fournisseur->enabled) + { + $menu->add("/fourn/index.php3", "Fournisseurs"); + } $menu->add("/user/", "Utilisateurs"); - $menu->add("/admin/", "Configuration"); + if ($user->admin) + { + $menu->add("/admin/", "Configuration"); + } if ($conf->voyage) {