From 84db975271425af2ee2501e9eeb0bfc50baf0908 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 30 Jul 2007 09:48:46 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20pour=20le=20moment=20la=20fonction=20ne?= =?UTF-8?q?=20cr=E9e=20des=20vignette=20que=20pour=20les=20formats=20JPG?= =?UTF-8?q?=20et=20PNG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index bbc53459bfc..be41f555202 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -2143,7 +2143,8 @@ class Product // Crée fichier en taille origine doliMoveFileUpload($files['tmp_name'], $originImage); - if (file_exists($originImage)) + // Todo: Ajouter création vignette pour les autres formats d'images + if (file_exists($originImage) && eregi('(\.jpg|\.png)$',$files['name'])) { // Crée fichier en taille vignette vignette($originImage);