From 49dbf80fdda6a98fc50b96b8f47bfe1aa4826c67 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Feb 2004 16:22:12 +0000 Subject: [PATCH] =?UTF-8?q?Le=20titre=20Produit/Service=20affiche=20Produi?= =?UTF-8?q?t,=20Service=20ou=20les=202=20selon=20l'=E9tat=20d'activatin=20?= =?UTF-8?q?des=20modules.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/pre.inc.php | 2 +- htdocs/pre.inc.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/pre.inc.php b/htdocs/comm/pre.inc.php index 451eb4bcbe9..52de522588b 100644 --- a/htdocs/comm/pre.inc.php +++ b/htdocs/comm/pre.inc.php @@ -69,7 +69,7 @@ function llxHeader($head = "", $urlp = "") { if ($conf->produit->enabled) { $chaine.="Produits"; } if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } if ($conf->service->enabled) { $chaine.="Services"; } - $menu->add(DOL_URL_ROOT."/product/index.php", "Produits/Services"); + $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); } if ($conf->projet->enabled ) diff --git a/htdocs/pre.inc.php b/htdocs/pre.inc.php index 6c0ad924ac9..ec50a9212e6 100644 --- a/htdocs/pre.inc.php +++ b/htdocs/pre.inc.php @@ -69,9 +69,13 @@ function llxHeader($head = "") { $menu->add(DOL_URL_ROOT."/fichinter/index.php", "Fiches d'intervention"); } - if ($conf->produit->enabled ) + if ($conf->produit->enabled || $conf->service->enabled) { - $menu->add(DOL_URL_ROOT."/product/index.php", "Produits"); + $chaine=""; + if ($conf->produit->enabled) { $chaine.="Produits"; } + if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } + if ($conf->service->enabled) { $chaine.="Services"; } + $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); if ($conf->boutique->enabled) {