From e6b9cb16b549edad92c6402aff0ba8ca651c5dcd Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Wed, 14 Feb 2024 15:43:08 +0100 Subject: [PATCH] 13.1.06 slider 6.3 + changes --- CHANGES.md | 1 + module/slider/changes.md | 2 ++ module/slider/slider.php | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7671f40e..0353d8b0 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ ### Corrections - Ajout d'utilisateur, étiquette non sauvegardée. +- Slider, corrige un tri non pris en compte. ## Version 13.1.05 diff --git a/module/slider/changes.md b/module/slider/changes.md index 4ed45c84..83c5fa91 100644 --- a/module/slider/changes.md +++ b/module/slider/changes.md @@ -1,3 +1,5 @@ +# Version 6.3 +- Corrige un tri non fonctionnel. # Version 6.2 - Applique les profils # Version 6.1 diff --git a/module/slider/slider.php b/module/slider/slider.php index abcdf330..1b04af1f 100644 --- a/module/slider/slider.php +++ b/module/slider/slider.php @@ -27,7 +27,7 @@ class slider extends common 'index' => self::GROUP_VISITOR ]; - const VERSION = '6.2'; + const VERSION = '6.3'; const REALNAME = 'Carrousel'; const DELETE = true; const UPDATE = '0.0'; @@ -237,7 +237,7 @@ class slider extends common } } // Tri des images pour affichage de la liste dans la page d'édition - switch ($this->getData(['module', $this->getUrl(0), 'theme', 'tri'])) { + switch ($this->getData(['module', $this->getUrl(0), 'theme', 'sort'])) { case 'dsc': krsort(self::$pictures, SORT_NATURAL | SORT_FLAG_CASE); break; @@ -385,7 +385,7 @@ class slider extends common } // Tri des images par ordre alphabétique, alphabétique inverse, aléatoire ou pas - switch ($this->getData(['module', $galleryId, 'config', 'tri'])) { + switch ($this->getData(['module', $galleryId, 'config', 'sort'])) { case 'SORT_DSC': krsort(self::$pictures, SORT_NATURAL | SORT_FLAG_CASE); break; @@ -445,7 +445,7 @@ class slider extends common 'speed' => 1000, 'timeout' => 3000, 'namespace' => 'centered-btns', - 'tri' => 'RAND', + 'sort' => 'RAND', ], 'directory' => null, 'legends' => [],