From 876c524391a258c994e9c2ed9c3b7cb8d3c88142 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 4 Nov 2023 12:09:14 +0100 Subject: [PATCH] fix typo --- CHANGELOG.md | 6 ++++++ README.md | 7 +++---- _define.php | 10 +++++----- dcstore.xml | 4 ++-- src/Backend.php | 1 + src/Frontend.php | 2 +- src/Manage.php | 10 +++++----- 7 files changed, 23 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba7bcc3..f390afc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +httpPassword 1.5.1 - 2023.11.04 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Fix typo + httpPassword 1.5 - 2023.10.17 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index ff00b20..b23e222 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/httpPassword/releases) -![Date](https://img.shields.io/badge/date-2023.08.12-c44d58.svg) +[![Release](https://img.shields.io/badge/release-1.5.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/httpPassword/releases) +![Date](https://img.shields.io/badge/date-2023.10.04-c44d58.svg) [![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/httpPassword) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/httpPassword/src/branch/master/LICENSE) @@ -16,7 +16,7 @@ _httpPassword_ is a plugin for the open-source web publishing software called [D * Dotclear 2.28 * PHP 8.1+ -* Write permissions on blogs directories +* Dotclear write permissions on blogs directories ## USAGE @@ -31,7 +31,6 @@ Manage settings, last logins, authorized users from sidebar menu _Http password_ * [Packages & details](https://git.dotclear.watch/JcDenis/httpPassword/releases) (or on [Dotaddict](https://plugins.dotaddict.org/dc2/details/httpPassword)) * [Sources & contributions](https://git.dotclear.watch/JcDenis/httpPassword) (or on [GitHub](https://github.com/JcDenis/httpPassword)) * [Issues & security](https://git.dotclear.watch/JcDenis/httpPassword/issues) (or on [GitHub](https://github.com/JcDenis/httpPassword/issues)) -* [Discuss & Help](http://forum.dotclear.org/viewtopic.php?pid=331158) ## CONTRIBUTORS diff --git a/_define.php b/_define.php index 9cedfed..08a0363 100644 --- a/_define.php +++ b/_define.php @@ -18,13 +18,13 @@ $this->registerModule( 'Http password', 'Manage .htpasswd file to make the blog private', 'Frederic PLE and contributors', - '1.5', + '1.5.1', [ 'requires' => [['core', '2.28']], 'permissions' => 'My', - 'type' => 'plugin', - 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', - 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', - 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', + 'type' => 'plugin', + 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', + 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', + 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index 0e0b583..0277040 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Http password - 1.5 + 1.5.1 Frederic PLE and contributors Manage .htpasswd file to make the blog private - https://git.dotclear.watch/JcDenis/httpPassword/releases/download/v1.5/plugin-httpPassword.zip + https://git.dotclear.watch/JcDenis/httpPassword/releases/download/v1.5.1/plugin-httpPassword.zip 2.28 https://git.dotclear.watch/JcDenis/httpPassword/src/branch/master/README.md https://git.dotclear.watch/JcDenis/httpPassword/issues diff --git a/src/Backend.php b/src/Backend.php index 8dda46f..996ad58 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -1,4 +1,5 @@ fetch()) { $ids[] = is_numeric($logs->f('log_id')) ? (int) $logs->f('log_id') : 0; } - $logs = App::log()->delLogs($ids); + App::log()->delLogs($ids); } $cursor = App::log()->openLogCursor(); $cursor->setField('log_table', My::id()); diff --git a/src/Manage.php b/src/Manage.php index d44e9cd..c0f0659 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -83,7 +83,7 @@ class Manage extends Process while ($logs->fetch()) { $ids[] = $logs->__get('log_id'); } - $logs = App::log()->delLogs($ids); + App::log()->delLogs($ids); Notices::addSuccessNotice( __('Logs successfully cleared.') @@ -190,7 +190,7 @@ class Manage extends Process // message (new Para())->items([ (new Label(__('Authentication message:')))->for('message'), - (new Input('message'))->size(60)->maxlenght(255)->value(Utils::httpMessage()), + (new Input('message'))->size(60)->maxlength(255)->value(Utils::httpMessage()), ]), (new Div())->class('clear')->items([ (new Submit(['save']))->value(__('Save')), @@ -255,7 +255,7 @@ class Manage extends Process Html::escapeHTML($login) . '' . '' . - (new Input(['newpassword[' . Html::escapeHTML($login) . ']']))->size(60)->maxlenght(255)->render() . + (new Input(['newpassword[' . Html::escapeHTML($login) . ']']))->size(60)->maxlength(255)->render() . '' . '' . (new Submit(['edit[' . Html::escapeHTML($login) . ']']))->value(__('Change password'))->render() . @@ -292,12 +292,12 @@ class Manage extends Process // login (new Para())->items([ (new Label(__('Login:')))->for('login'), - (new Input('login'))->size(60)->maxlenght(255), + (new Input('login'))->size(60)->maxlength(255), ]), // password (new Para())->items([ (new Label(__('Password:')))->for('password'), - (new Input('password'))->size(60)->maxlenght(255), + (new Input('password'))->size(60)->maxlength(255), ]), (new Para())->items([ (new Submit(['add']))->value(__('Save')),