From a4975833791f73f2f8c674539593aa3c20c7f6f4 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 13 Oct 2023 20:34:49 +0200 Subject: [PATCH] release 1.2.1 --- CHANGELOG.md | 6 ++++++ README.md | 4 ++-- _define.php | 2 +- dcstore.xml | 4 ++-- src/Frontend.php | 2 +- src/UrlHandler.php | 2 +- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03baede..d11242e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +noodles 1.2.1 - 2023.10.13 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Upgrade to last minute change to Dotclear 2.28 + noodles 1.2 - 2023.10.12 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index 3698545..60023bb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-1.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/noodles/releases) -![Date](https://img.shields.io/badge/date-2023.10.12-c44d58.svg) +[![Release](https://img.shields.io/badge/release-1.2.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/noodles/releases) +![Date](https://img.shields.io/badge/date-2023.10.13-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/oodles) [![License](https://img.shields.io/github/license/JcDenis/noodles)](https://git.dotclear.watch/JcDenis/noodles/blob/master/LICENSE) diff --git a/_define.php b/_define.php index df7fa0e..8d92298 100644 --- a/_define.php +++ b/_define.php @@ -17,7 +17,7 @@ $this->registerModule( 'Noodles', 'Add users gravatars everywhere', 'Jean-Christian Denis and contributors', - '1.2', + '1.2.1', [ 'requires' => [['core', '2.28']], 'permissions' => 'My', diff --git a/dcstore.xml b/dcstore.xml index 9cb35d5..0e0c78a 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Noodles - 1.2 + 1.2.1 Jean-Christian Denis and contributors Add users gravatars everywhere - https://git.dotclear.watch/JcDenis/noodles/releases/download/v1.2/plugin-noodles.zip + https://git.dotclear.watch/JcDenis/noodles/releases/download/v1.2.1/plugin-noodles.zip 2.28 https://git.dotclear.watch/JcDenis/noodles/src/branch/master/README.md https://git.dotclear.watch/JcDenis/noodles/issues diff --git a/src/Frontend.php b/src/Frontend.php index e3cc261..eea77f2 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -33,7 +33,7 @@ class Frontend extends Process return false; } - App::frontend()->tpl->setPath(App::frontend()->tpl->getPath(), My::path() . '/default-templates'); + App::frontend()->template()->setPath(App::frontend()->template()->getPath(), My::path() . '/default-templates'); foreach ($targets->dump() as $target) { if ($target->active() && $target->hasPhpCallback()) { diff --git a/src/UrlHandler.php b/src/UrlHandler.php index e4e068f..ce92e09 100644 --- a/src/UrlHandler.php +++ b/src/UrlHandler.php @@ -184,7 +184,7 @@ class UrlHandler extends Url if (str_contains($file, '..')) { return ''; } - $paths = App::frontend()->tpl->getPath(); + $paths = App::frontend()->template()->getPath(); foreach ($paths as $path) { if (preg_match('/tpl(\/|)$/', $path)) {