From 96c7e87cba9ccc749df6657181085b21ed88f85e Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 4 Nov 2023 10:56:38 +0100 Subject: [PATCH] fix host --- CHANGELOG.md | 6 ++++++ README.md | 5 +++-- _define.php | 2 +- dcstore.xml | 4 ++-- src/Backend.php | 3 ++- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aba2af0..b29ebc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +CategoriesPage 1.3.2 - 2023.11.04 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Fix host + CategoriesPage 1.3.1 - 2023.10.24 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index 089a37d..c767286 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-1.3.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/CategoriesPage/releases) -![Date](https://img.shields.io/badge/date-2023.10.24-c44d58.svg) +[![Release](https://img.shields.io/badge/release-1.3.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/CategoriesPage/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/CategoriesPage) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/CategoriesPage/src/branch/master/LICENSE) @@ -32,6 +32,7 @@ default templates are on plugin directory CategoriesPage/default-templates/ * [Packages & details](https://git.dotclear.watch/JcDenis/CategoriesPage/releases) (or on [Dotaddict](https://plugins.dotaddict.org/dc2/details/CategoriesPage)) * [Sources & contributions](https://git.dotclear.watch/JcDenis/CategoriesPage) (or on [GitHub](https://github.com/JcDenis/CategoriesPage)) * [Issues & security](https://git.dotclear.watch/JcDenis/CategoriesPage/issues) (or on [GitHub](https://github.com/JcDenis/CategoriesPage/issues)) +* [Discuss & help](https://forum.dotclear.org/viewtopic.php?id=43627) ## CONTRIBUTORS diff --git a/_define.php b/_define.php index 4e863c9..b93c232 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Categories Page', 'Add a public page for categories list', 'Pierre Van Glabeke, Bernard Le Roux and Contributors', - '1.3.1', + '1.3.2', [ 'requires' => [['core', '2.28']], 'permissions' => 'My', diff --git a/dcstore.xml b/dcstore.xml index 560a024..0479fcc 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Categories Page - 1.3.1 + 1.3.2 Pierre Van Glabeke, Bernard Le Roux and Contributors Add a public page for categories list - https://git.dotclear.watch/JcDenis/CategoriesPage/releases/download/v1.3.1/plugin-CategoriesPage.zip + https://git.dotclear.watch/JcDenis/CategoriesPage/releases/download/v1.3.2/plugin-CategoriesPage.zip 2.28 https://git.dotclear.watch/JcDenis/CategoriesPage/src/branch/master/README.md https://git.dotclear.watch/JcDenis/CategoriesPage/issues diff --git a/src/Backend.php b/src/Backend.php index 72c3210..0965ad1 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -7,6 +7,7 @@ namespace Dotclear\Plugin\CategoriesPage; use ArrayObject; use Dotclear\App; use Dotclear\Core\Process; +use Dotclear\Helper\Html\Html; /** * @brief CategoriesPage backend class. @@ -37,7 +38,7 @@ class Backend extends Process if (My::id() == $type) { $item[0] = My::name(); $item[1] = My::name(); - $item[2] = App::url()->getURLFor(My::id()); + $item[2] = Html::stripHostURL(App::blog()->url()) . App::url()->getURLFor(My::id()); } }, 'initWidgets' => Widgets::initWidgets(...),