From 72d5f463531bcea3ac0ca6b2d693a2045baada08 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 10 Apr 2020 16:10:44 +0200 Subject: [PATCH] =?UTF-8?q?Image=20par=20d=C3=A9faut=20de=20la=20gallery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 6ec0dcc2..a5594624 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -434,8 +434,8 @@ class gallery extends common { } // Définir l'image de couverture self::$firstPictures[$galleryId] = file_exists( str_replace('source','thumb',$gallery['config']['directory']) . '/' . self::THUMBS_SEPARATOR . strtolower($gallery['config']['homePicture'])) - ? str_replace('source','thumb',$gallery['config']['directory']) . '/' . self::THUMBS_SEPARATOR . strtolower($gallery['config']['homePicture']) - : str_replace('source','thumb',$gallery['config']['directory']) . '/' . strtolower($gallery['config']['homePicture']); + ? str_replace('source','thumb',$gallery['config']['directory']) . '/' . self::THUMBS_SEPARATOR . strtolower($gallery['config']['homePicture']) + : str_replace('source','thumb',$gallery['config']['directory']) . '/' . strtolower($fileInfos->getFilename()); continue(2); } }