From 2811b8632ffa52e2ee88a20d4528d5e5c9e54628 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 30 Jul 2007 12:11:09 +0000 Subject: [PATCH] Fix: mise au pluriel de thumb --- htdocs/lib/functions.inc.php | 2 +- htdocs/product.class.php | 8 ++++---- htdocs/product/photos.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 9bf5090f396..97ceb63be4b 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -2971,7 +2971,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120){ $fichier = realpath($file); // Chemin canonique absolu de l'image $dir = dirname($file).'/'; // Chemin du dossier contenant l'image - $dirthumb = $dir.'thumb/'; // Chemin du dossier contenant les vignettes + $dirthumb = $dir.'thumbs/'; // Chemin du dossier contenant les vignettes $infoImg = getimagesize($fichier); // Récupération des infos de l'image $imgWidth = $infoImg[0]; // Largeur de l'image $imgHeight = $infoImg[1]; // Hauteur de l'image diff --git a/htdocs/product.class.php b/htdocs/product.class.php index aaf4acd8dfd..a240b2ea2e9 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -2235,8 +2235,8 @@ class Product { $pdir = get_exdir($this->id,2) . $this->id ."/photos/"; $dir = $sdir . '/'. $pdir; - $dirthumb = $dir.'thumb/'; - $pdirthumb = $pdir.'thumb/'; + $dirthumb = $dir.'thumbs/'; + $pdirthumb = $pdir.'thumbs/'; $nbphoto=0; if (file_exists($dir)) @@ -2318,7 +2318,7 @@ class Product $nbphoto=0; $tabobj=array(); - $dirthumb = $dir.'thumb/'; + $dirthumb = $dir.'thumbs/'; if (file_exists($dir)) { @@ -2364,7 +2364,7 @@ class Product function delete_photo($file) { $dir = dirname($file).'/'; // Chemin du dossier contenant l'image d'origine - $dirthumb = $dir.'/thumb/'; // Chemin du dossier contenant la vignette + $dirthumb = $dir.'/thumbs/'; // Chemin du dossier contenant la vignette $filename = eregi_replace($dir,'',$file); // Nom du fichier // On efface l'image d'origine diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index 2030b97e39e..ee0fc926918 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -187,7 +187,7 @@ if ($_GET["id"] || $_GET["ref"]) // Si fichier vignette disponible, on l'utilise, sinon on utilise photo origine if ($obj['photo_vignette']) { - $filename='thumb/'.$obj['photo_vignette']; + $filename='thumbs/'.$obj['photo_vignette']; } else {