diff --git a/CHANGELOG.md b/CHANGELOG.md index ac33299..acdd5d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +dcAdvancedCleaner 1.5 - 2023.10.13 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Code review + dcAdvancedCleaner 1.4 - 2023.10.07 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index d483c8b..89b56bd 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/dcAdvancedCleaner/releases) -![Date](https://img.shields.io/badge/date-2023.10.07-c44d58.svg) +[![Release](https://img.shields.io/badge/release-1.5-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/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/dcAdvancedCleaner) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/LICENSE) @@ -14,10 +14,10 @@ _dcAdvancedCleaner_ is a plugin for the open-source web publishing software call ## REQUIREMENTS -* Permissions superadmin * Dotclear 2.28 -* PHP >= 8.1 +* PHP 8.1+ * Plugin Uninstaller +* Permissions superadmin ## USAGE @@ -32,7 +32,12 @@ Once it's done you can manage cleaners from menu * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) * Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner) or [GitHub Page](https://github.com/JcDenis/dcAdvancedCleaner) * Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/dcAdvancedCleaner) -* Discuss and help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=40381) + +* [License](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/LICENSE) +* [Packages & details](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases) (or on [Dotaddict](https://plugins.dotaddict.org/dc2/details/dcAdvancedCleaner)) +* [Sources & contributions](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner) (or on [GitHub](https://github.com/JcDenis/dcAdvancedCleaner)) +* [Issues & security](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/issues) (or on [GitHub](https://github.com/JcDenis/dcAdvancedCleaner/issues)) +* [Discuss & help](https://forum.dotclear.org/viewtopic.php?id=40381) ## CONTRIBUTORS diff --git a/_define.php b/_define.php index 452cfa5..b74e105 100644 --- a/_define.php +++ b/_define.php @@ -1,31 +1,30 @@ registerModule( 'Advanced cleaner', 'Make a huge cleaning of dotclear', 'Jean-Christian Denis and Contributors', - '1.4', + '1.5', [ 'requires' => [ - ['php', '8.1'], ['core', '2.28'], ['Uninstaller', '1.0'], ], - 'permissions' => null, + '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', diff --git a/dcstore.xml b/dcstore.xml index f641440..3b48f1f 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Advanced cleaner - 1.4 + 1.5 Jean-Christian Denis and Contributors Make a huge cleaning of dotclear - https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases/download/v1.4/plugin-dcAdvancedCleaner.zip + https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases/download/v1.5/plugin-dcAdvancedCleaner.zip 2.28 https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/README.md https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/issues diff --git a/locales/en/resources.php b/locales/en/resources.php index a254f38..4ec03e9 100644 --- a/locales/en/resources.php +++ b/locales/en/resources.php @@ -1,16 +1,12 @@ resources['help']['dcAdvancedCleaner'] = __DIR__ . '/help/dcAdvancedCleaner.html'; + +\Dotclear\App::backend()->resources()->set('help', 'dcAdvancedCleaner', __DIR__ . '/help/dcAdvancedCleaner.html'); \ No newline at end of file diff --git a/locales/fr/resources.php b/locales/fr/resources.php index a254f38..4ec03e9 100644 --- a/locales/fr/resources.php +++ b/locales/fr/resources.php @@ -1,16 +1,12 @@ resources['help']['dcAdvancedCleaner'] = __DIR__ . '/help/dcAdvancedCleaner.html'; + +\Dotclear\App::backend()->resources()->set('help', 'dcAdvancedCleaner', __DIR__ . '/help/dcAdvancedCleaner.html'); \ No newline at end of file diff --git a/src/Backend.php b/src/Backend.php index 09f2f1e..6ebfefe 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -1,15 +1,5 @@ The post form selected ns */ + /** + * The post form selected ns. + * + * @var array $entries + */ public readonly array $entries; - /** @var string The post form action id */ + /** + * The post form action id. + * + * @var string $action + */ public readonly string $action; - /** @var array The form actions combo */ + /** + * The form actions combo. + * + * @var array $combo + */ public readonly array $combo; protected function __construct() diff --git a/src/My.php b/src/My.php index f5eda4c..6aef987 100644 --- a/src/My.php +++ b/src/My.php @@ -1,15 +1,5 @@ isSuperAdmin() : null; + // Limit to backend and super admin + return App::task()->checkContext('BACKEND') && App::auth()->isSuperAdmin(); } } diff --git a/src/Prepend.php b/src/Prepend.php index 769f1ba..955dee5 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -1,15 +1,5 @@