diff --git a/htdocs/product/barcode.php b/htdocs/product/barcode.php index 91f84c866d5..c25dac980d5 100644 --- a/htdocs/product/barcode.php +++ b/htdocs/product/barcode.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * @@ -54,7 +54,7 @@ if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]); if ($_GET["id"]) $result = $product->fetch($_GET["id"]); -$head=product_prepare_head($product); +$head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'barcode', $titre); diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index f035ec31710..6d228abcc91 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2005 Brice Davoleau * Copyright (C) 2005-2006 Regis Houssin * Copyright (C) 2006 Laurent Destailleur @@ -99,10 +99,10 @@ $html = new Form($db); */ if ($_GET["id"] || $_GET["ref"]) { - $head=product_prepare_head($product); - $titre=$langs->trans("CardProduct".$product->type); - dolibarr_fiche_head($head, 'category', $titre); - + $head=product_prepare_head($product, $user); + $titre=$langs->trans("CardProduct".$product->type); + dolibarr_fiche_head($head, 'category', $titre); + print ''; print ""; diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 6ebb785a740..3e20aa41434 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Marc Barilley / Ocebo * Copyright (C) 2005 Regis Houssin @@ -99,7 +99,7 @@ if ($product->id) dol_delete_file($file); } - $head=product_prepare_head($product); + $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); dolibarr_fiche_head($head, 'documents', $titre);