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