From c591a36c39fefc585e484f63156d1cf6a6e44f46 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 1 May 2004 01:01:35 +0000 Subject: [PATCH] =?UTF-8?q?La=20fonctionnalit=E9=20des=20Contrats=20de=20s?= =?UTF-8?q?ervices=20a=20=E9t=E9=20isol=E9e=20dans=20un=20module=20ind=E9p?= =?UTF-8?q?endant=20ce=20qui=20permet=20de=20ne=20pas=20l'activer=20pour?= =?UTF-8?q?=20ceux=20qui=20ne=20la=20veulent=20pas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/pre.inc.php | 11 +++++++---- htdocs/compta/pre.inc.php | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/pre.inc.php b/htdocs/comm/pre.inc.php index 52de522588b..98a8632583d 100644 --- a/htdocs/comm/pre.inc.php +++ b/htdocs/comm/pre.inc.php @@ -51,7 +51,10 @@ function llxHeader($head = "", $urlp = "") { $menu->add_submenu("./propal/stats/", "Statistiques"); } - $menu->add(DOL_URL_ROOT."/contrat/index.php", "Contrats"); + if ($conf->contrat->enabled) + { + $menu->add(DOL_URL_ROOT."/contrat/index.php", "Contrats"); + } if ($conf->commande->enabled ) { @@ -65,10 +68,10 @@ function llxHeader($head = "", $urlp = "") { if ($conf->produit->enabled || $conf->service->enabled) { - $chaine=""; - if ($conf->produit->enabled) { $chaine.="Produits"; } + $chaine=""; + if ($conf->produit->enabled) { $chaine.="Produits"; } if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } - if ($conf->service->enabled) { $chaine.="Services"; } + if ($conf->service->enabled) { $chaine.="Services"; } $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); } diff --git a/htdocs/compta/pre.inc.php b/htdocs/compta/pre.inc.php index 34e5574a275..4366e5db701 100644 --- a/htdocs/compta/pre.inc.php +++ b/htdocs/compta/pre.inc.php @@ -42,7 +42,10 @@ function llxHeader($head = "", $title="") { $menu->add(DOL_URL_ROOT."/compta/propal.php","Prop. commerciales"); } - $menu->add(DOL_URL_ROOT."/contrat/","Contrats"); + if ($conf->contrat->enabled) + { + $menu->add(DOL_URL_ROOT."/contrat/","Contrats"); + } if ($conf->don->enabled) {