From 4646e02b82cd195a3e7c09ebcbfd43ce8d2219b6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 13 Nov 2022 23:43:30 +0100 Subject: [PATCH] prepare DC 2.24 --- CHANGELOG.md | 5 ++++- _admin.php | 11 +++++------ _define.php | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36b73dd..eaaa2bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -0.4 - 2021.09.02 +0.5 - 2022.11.12 +- require Dotclear 2.24 + +0.4 - 2021.09.02 - clean up code - add dcstore.xml diff --git a/_admin.php b/_admin.php index ce871bb..0dc4b0b 100644 --- a/_admin.php +++ b/_admin.php @@ -15,15 +15,15 @@ if (!defined('DC_CONTEXT_ADMIN')) { return null; } -if (!tinyPacker::repositoryDir($core)) { +if (!tinyPacker::repositoryDir()) { return null; } -$core->addBehavior( +dcCore::app()->addBehavior( 'adminModulesListGetActions', ['tinyPacker', 'adminModulesGetActions'] ); -$core->addBehavior( +dcCore::app()->addBehavior( 'adminModulesListDoActions', ['tinyPacker', 'adminModulesDoActions'] ); @@ -141,13 +141,12 @@ class tinyPacker /** * Check and create directories used by packer - * @param object $core dcCore instance * @return string|boolean Cleaned path or false on error */ - public static function repositoryDir($core) + public static function repositoryDir() { $dir = path::real( - $core->blog->public_path . '/' . tinyPacker::$sub_dir, + dcCore::app()->blog->public_path . '/' . tinyPacker::$sub_dir, false ); diff --git a/_define.php b/_define.php index 61003c6..e8ec1ee 100644 --- a/_define.php +++ b/_define.php @@ -19,9 +19,9 @@ $this->registerModule( 'Tiny packer', 'Quick pack theme or plugin into public dir', 'Jean-Christian Denis', - '0.4.1', + '0.5', [ - 'requires' => [['core', '2.19']], + 'requires' => [['core', '2.24']], 'permissions' => null, 'type' => 'plugin', 'support' => 'https://github.com/JcDenis/tinyPacker',