diff --git a/CHANGELOG.md b/CHANGELOG.md index 7add08f..c9167d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +cinecturlink2 2.3.1 - 2023.11.04 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Use last minute changes from Dotclear 2.28 + cinecturlink2 2.3 - 2023.10.23 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index 9ca9b34..2bc0f59 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-2.3-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/cinecturlink2/releases) -![Date](https://img.shields.io/badge/date-2023.10.23-c44d58.svg)] +[![Release](https://img.shields.io/badge/release-2.3.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/cinecturlink2/releases) +![Date](https://img.shields.io/badge/date-2023.11.04-c44d58.svg)] [![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/cinecturlink2) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/cinecturlink2/src/branch/master/LICENSE) diff --git a/_define.php b/_define.php index 13f030d..828ce6d 100644 --- a/_define.php +++ b/_define.php @@ -21,7 +21,7 @@ $this->registerModule( 'Cinecturlink 2', 'Widgets and pages about books, musics, films, blogs you are interested in', 'Jean-Christian Denis and Contributors', - '2.3', + '2.3.1', [ 'requires' => [['core', '2.28']], 'settings' => ['blog' => '#params.' . basename(__DIR__) . '_params'], diff --git a/dcstore.xml b/dcstore.xml index e224d4f..7c5b715 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Cinecturlink 2 - 2.3 + 2.3.1 Jean-Christian Denis and Contributors Widgets and pages about books, musics, films, blogs you are interested in - https://git.dotclear.watch/JcDenis/cinecturlink2/releases/download/v2.3/plugin-cinecturlink2.zip + https://git.dotclear.watch/JcDenis/cinecturlink2/releases/download/v2.3.1/plugin-cinecturlink2.zip 2.28 https://git.dotclear.watch/JcDenis/cinecturlink2/src/branch/master/README.md https://git.dotclear.watch/JcDenis/cinecturlink2/issues diff --git a/src/BackendListingLinks.php b/src/BackendListingLinks.php index 5e3754a..e056302 100644 --- a/src/BackendListingLinks.php +++ b/src/BackendListingLinks.php @@ -165,8 +165,7 @@ class BackendListingLinks extends Listing $this->userColumns(My::id(), $cols); - return - (new Para('p' . $row->link_id, 'tr')) + return (new Para('p' . $row->link_id, 'tr')) ->class('line') ->items(iterator_to_array($cols)); } diff --git a/src/FrontendUrl.php b/src/FrontendUrl.php index ea4101d..fe67bb2 100644 --- a/src/FrontendUrl.php +++ b/src/FrontendUrl.php @@ -6,7 +6,6 @@ namespace Dotclear\Plugin\cinecturlink2; use Dotclear\App; use Dotclear\Core\Frontend\Url; -use Dotclear\Helper\File\Path; /** * @brief cinecturlink2 frontend URLclass. @@ -27,8 +26,10 @@ class FrontendUrl extends Url } $tplset = App::themes()->getDefine(App::blog()->settings()->get('system')->get('theme'))->get('tplset'); - $tpldir = Path::real(App::plugins()->getDefine(My::id())->get('root')) . DIRECTORY_SEPARATOR . App::frontend()::TPL_ROOT . DIRECTORY_SEPARATOR; - App::frontend()->template()->setPath(App::frontend()->template()->getPath(), $tpldir . (!empty($tplset) && is_dir($tpldir . $tplset) ? $tplset : App::config()->defaultTplset())); + if (empty($tplset) || !is_dir(implode(DIRECTORY_SEPARATOR, [My::path(), 'default-templates', $tplset]))) { + $tplset = App::config()->defaultTplset(); + } + App::frontend()->template()->appendPath(implode(DIRECTORY_SEPARATOR, [My::path(), 'default-templates', $tplset])); $params = [];