diff --git a/htdocs/fourn/pre.inc.php b/htdocs/fourn/pre.inc.php index 781e69dbd00..12684664b8b 100644 --- a/htdocs/fourn/pre.inc.php +++ b/htdocs/fourn/pre.inc.php @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -95,6 +94,13 @@ function llxHeader($head = "", $title="", $addons='') { } } + if ($conf->categorie->enabled) + { + $langs->load("categories"); + // Catégories fournisseurs + $menu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0); + } + left_menu($menu->liste); } ?> diff --git a/htdocs/pre.inc.php b/htdocs/pre.inc.php index 33415082590..ae2147243a1 100644 --- a/htdocs/pre.inc.php +++ b/htdocs/pre.inc.php @@ -55,7 +55,13 @@ function llxHeader($head = "") } $menu->add_submenu(DOL_URL_ROOT."/contact/index.php",$langs->trans("Contacts")); } - + + if ($conf->categorie->enabled) + { + $langs->load("categories"); + $menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("Categories")); + } + if ($conf->commercial->enabled && isset($user->rights->commercial->lire) && $user->rights->commercial->lire) { $langs->load("commercial"); diff --git a/htdocs/product/pre.inc.php b/htdocs/product/pre.inc.php index fa712afdb39..fc77a9d880d 100644 --- a/htdocs/product/pre.inc.php +++ b/htdocs/product/pre.inc.php @@ -1,7 +1,7 @@ - * Copyright (C) 2004-2006 Laurent Destailleur - * Copyright (C) 2007 Auguria SARL + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2007 Auguria SARL * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +18,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -117,7 +116,8 @@ function llxHeader($head = "", $urlp = "", $title="") if ($conf->categorie->enabled) { - $menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("Categories")); + $langs->load("categories"); + $menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("ProductsCategoriesShort")); } left_menu($menu->liste);