From 7e6777f344df3754fc76d1d4dbb16f2c844a0ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Ferry?= Date: Sun, 16 Mar 2014 13:49:44 +0100 Subject: [PATCH] Fix: bad id when deleting picture on categorie / missing lang --- htdocs/categories/photos.php | 5 +++-- htdocs/langs/en_US/categories.lang | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/photos.php b/htdocs/categories/photos.php index bbffe5865d364..b64854e5b22f3 100644 --- a/htdocs/categories/photos.php +++ b/htdocs/categories/photos.php @@ -3,6 +3,7 @@ * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2014 Jean-François Ferry * * 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 @@ -264,11 +265,11 @@ // On propose la generation de la vignette si elle n'existe pas et si la taille est superieure aux limites if (!$obj['photo_vignette'] && preg_match('/(\.bmp|\.gif|\.jpg|\.jpeg|\.png)$/i',$obj['photo']) && ($object->imgWidth > $maxWidth || $object->imgHeight > $maxHeight)) { - print ''.img_picto($langs->trans('GenerateThumb'),'refresh').'  '; + print ''.img_picto($langs->trans('GenerateThumb'),'refresh').'  '; } if ($user->rights->categorie->creer) { - print ''; + print ''; print img_delete().''; } if ($nbbyrow) print ''; diff --git a/htdocs/langs/en_US/categories.lang b/htdocs/langs/en_US/categories.lang index b6b08562438eb..1740288683d26 100644 --- a/htdocs/langs/en_US/categories.lang +++ b/htdocs/langs/en_US/categories.lang @@ -105,3 +105,5 @@ CatProdLinks=Products CatCusLinks=Customer/Prospects CatSupLinks=Suppliers DeleteFromCat=Remove from category +DeletePicture=Picture delete +ConfirmDeletePicture=Confirm picture deletion? \ No newline at end of file