From 945b9403b6fa350818466381df1f8fd1b9ba8cd6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 20 Nov 2022 18:01:26 +0100 Subject: [PATCH] release 1.1.0 --- CHANGELOG.md | 3 +++ README.md | 4 ++-- dcstore.xml | 6 +++--- inc/class.cinecturlink2.php | 24 +++++++++++++++--------- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 790f528..a419ce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ dev - [ ] enhance public template +1.1.0 - 2022.11.20 +- fix compatibility with Dotclear 2.24 (required) + 1.0.0 - 2021.11.06 - fix javascript (and externalize them) - fix modal diff --git a/README.md b/README.md index b91ded2..a720063 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/cinecturlink2)](https://github.com/JcDenis/cinecturlink2/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/cinecturlink2)](https://github.com/JcDenis/cinecturlink2/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/cinecturlink2)](https://github.com/JcDenis/cinecturlink2/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.20-blue.svg)](https://fr.dotclear.org/download) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.24-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/cinecturlink2) [![License](https://img.shields.io/github/license/JcDenis/cinecturlink2)](https://github.com/JcDenis/cinecturlink2/blob/master/LICENSE) @@ -22,7 +22,7 @@ by Tigroux and maintain by brol. * admin perms for configuration * contentadmin permissions for management - * Dotclear 2.20 + * Dotclear 2.24 * A writable directory on public path to store picture * Note: it also creates dedicated database tables diff --git a/dcstore.xml b/dcstore.xml index 96eeec3..e6fd40c 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,11 +2,11 @@ Cinecturlink 2 - 1.0.0 + 1.1.0 Jean-Christian Denis and Contributors Widgets and pages about books, musics, films, blogs you are interested in - https://github.com/JcDenis/cinecturlink2/releases/download/v1.0.0/plugin-cinecturlink2.zip - 2.20 + https://github.com/JcDenis/cinecturlink2/releases/download/v1.1.0/plugin-cinecturlink2.zip + 2.24 https://plugins.dotaddict.org/dc2/details/cinecturlink2 https://github.com/JcDenis/cinecturlink2 diff --git a/inc/class.cinecturlink2.php b/inc/class.cinecturlink2.php index b5ff60e..007ec41 100644 --- a/inc/class.cinecturlink2.php +++ b/inc/class.cinecturlink2.php @@ -98,9 +98,11 @@ class cinecturlink2 if (!empty($params['cat_id'])) { if (is_array($params['cat_id'])) { - array_walk($params['cat_id'], function (&$v, $k) { if ($v !== null) { - $v = (int) $v; - }}); + array_walk($params['cat_id'], function (&$v, $k) { + if ($v !== null) { + $v = (int) $v; + } + }); } else { $params['cat_id'] = [(int) $params['cat_id']]; } @@ -286,9 +288,11 @@ class cinecturlink2 if (!empty($params['cat_id'])) { if (is_array($params['cat_id'])) { - array_walk($params['cat_id'], function (&$v, $k) { if ($v !== null) { - $v = (int) $v; - }}); + array_walk($params['cat_id'], function (&$v, $k) { + if ($v !== null) { + $v = (int) $v; + } + }); } else { $params['cat_id'] = [(int) $params['cat_id']]; } @@ -297,9 +301,11 @@ class cinecturlink2 if (isset($params['exclude_cat_id']) && $params['exclude_cat_id'] !== '') { if (is_array($params['exclude_cat_id'])) { - array_walk($params['exclude_cat_id'], function (&$v, $k) { if ($v !== null) { - $v = (int) $v; - }}); + array_walk($params['exclude_cat_id'], function (&$v, $k) { + if ($v !== null) { + $v = (int) $v; + } + }); } else { $params['exclude_cat_id'] = [(int) $params['exclude_cat_id']]; }