Fix: mise au pluriel de thumb

This commit is contained in:
Regis Houssin 2007-07-30 12:11:09 +00:00
parent 274063f002
commit 2811b8632f
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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
{