From f49fbcc54856c855b70523674a5c55e49eca50fe Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 14 Oct 2007 11:19:46 +0000 Subject: [PATCH] Fix: on ne fait apparaitre que le nom du fichier --- htdocs/product/photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index a6f154d233c..5c605a903b4 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -213,11 +213,11 @@ if ($_GET["id"] || $_GET["ref"]) print ''; print ''; - print '
'.$langs->trans("File").': '.dolibarr_trunc($viewfilename,16); + print '
'.$viewfilename; print '
'; // On propose la génération de la vignette si elle n'existe pas et si la taille est supérieure aux limites - if (!$obj['photo_vignette'] && eregi('(\.jpg|\.jpeg|\.png)$',$obj['photo']) && ($product->imgWidth > $maxWidth || $product->imgHeight > $maxHeight)) + if (!$obj['photo_vignette'] && eregi('(\.bmp|\.gif|\.jpg|\.jpeg|\.png)$',$obj['photo']) && ($product->imgWidth > $maxWidth || $product->imgHeight > $maxHeight)) { print ''.img_refresh($langs->trans('GenerateThumb')).'  '; }