From ae682377d30a3097232804ee68dc37682b3243f7 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 13 Apr 2020 18:58:09 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20la=20miniature=20RFM=20si?= =?UTF-8?q?=20absente=20(upload=20FTP)=20pour=20l'=C3=A9dition=20de=20la?= =?UTF-8?q?=20galerie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 47540c5c..eef09cf1 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -47,7 +47,7 @@ class gallery extends common { public static $thumbs = []; - const GALLERY_VERSION = '2.4'; + const GALLERY_VERSION = '2.5'; /** @@ -287,11 +287,11 @@ class gallery extends common { foreach($iterator as $fileInfos) { if($fileInfos->isDot() === false AND $fileInfos->isFile() AND @getimagesize($fileInfos->getPathname())) { - // Créer la miniature si manquante - if (!file_exists( str_replace('source','thumb',$fileInfos->getPathname()) . '/' . self::THUMBS_SEPARATOR . strtolower($fileInfos->getFilename()))) { + // Créer la miniature RFM si manquante + if (!file_exists( str_replace('source','thumb',$fileInfos->getPathname()) . '/' . strtolower($fileInfos->getFilename()))) { $this->makeThumb($fileInfos->getPathname(), - str_replace('source','thumb',$fileInfos->getPath()) . '/' . self::THUMBS_SEPARATOR . strtolower($fileInfos->getFilename()), - self::THUMBS_WIDTH); + str_replace('source','thumb',$fileInfos->getPath()) . '/' . strtolower($fileInfos->getFilename()), + 122); } self::$pictures[str_replace('.','',$fileInfos->getFilename())] = [ template::ico('sort'),