From 30a41b54377ea39cd8c2ef3e6322e9cab0fa4bfd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Jul 2009 17:28:56 +0000 Subject: [PATCH] Add patch from meos to add photos on categories. Fix: Solve pb in categories navigation --- htdocs/categories/photos.php | 6 +++--- htdocs/categories/viewcat.php | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/categories/photos.php b/htdocs/categories/photos.php index 994ccb179aa..71a94cb0bb0 100644 --- a/htdocs/categories/photos.php +++ b/htdocs/categories/photos.php @@ -34,6 +34,7 @@ $langs->load("category"); $langs->load("bills"); $mesg = ''; +$type=$_REQUEST['type']; // Security check if (!$user->rights->categorie->lire) accessforbidden(); @@ -108,13 +109,12 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][2] = 'photos'; $h++; + $title=$langs->trans("ProductsCategoryShort"); if ($type == 0) $title=$langs->trans("ProductsCategoryShort"); if ($type == 1) $title=$langs->trans("SuppliersCategoryShort"); if ($type == 2) $title=$langs->trans("CustomersCategoryShort"); - - $titre=$langs->trans("ProductsCategoryShort"); - dol_fiche_head($head, 'photos', $titre); + dol_fiche_head($head, 'photos', $title); /* * Confirmation de la suppression de photo diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index e9ebb2ec4c5..7cb7b2be151 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -34,6 +34,7 @@ if ($_REQUEST['id'] == "") exit(); } +$mesg = ''; $type=$_REQUEST['type']; // Security check @@ -42,8 +43,6 @@ if (! $user->rights->categorie->lire) accessforbidden(); } -$mesg=''; - $c = new Categorie($db); $c->fetch($_REQUEST['id']);