From f28ffa423ef603f167687e14a3e0a2341e2bc4ed Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 13 May 2023 11:39:06 +0200 Subject: [PATCH] release 1.3 --- CHANGELOG.md | 4 ++++ _define.php | 6 +++--- dcstore.xml | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b019ea..a890e3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +1.3 - 2023.05.13 +- require dotclear 2.26 +- fix type hint and nullsafe warnings + 1.2 - 2023.04.22 - require dotclear 2.26 - add plugin Uninstaller features diff --git a/_define.php b/_define.php index 1d04440..b691007 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH')) { +if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { return null; } @@ -18,11 +18,11 @@ $this->registerModule( 'Http password', 'Manage .htpasswd file to make the blog private', 'Frederic PLE and contributors', - '1.2', + '1.3', [ 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_USAGE, + dcCore::app()->auth::PERMISSION_USAGE, initHttpPassword::PERMISSION, ]), 'type' => 'plugin', diff --git a/dcstore.xml b/dcstore.xml index 0e61f45..b5f4d88 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Http password - 1.2 + 1.3 Frederic PLE and contributors Manage .htpasswd file to make the blog private - https://github.com/JcDenis/httpPassword/releases/download/v1.2/plugin-httpPassword.zip + https://github.com/JcDenis/httpPassword/releases/download/v1.3/plugin-httpPassword.zip 2.26 http://plugins.dotaddict.org/dc2/details/httpPassword https://github.com/JcDenis/httpPassword