diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d2c8c5..cedbd34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ todo: - add form to admin media item page +1.0 - 2023.05.13 +- require dotclear 2.26 +- fix type hint and nullsafe + 0.9.1 - 2023.04.23 - require dotclear 2.26 - use latest dotclear namespace (database) diff --git a/_define.php b/_define.php index b7dadd2..98b0c27 100644 --- a/_define.php +++ b/_define.php @@ -10,15 +10,19 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ +if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { + return null; +} + $this->registerModule( 'Files alias', "Manage aliases of your blog's media", 'Osku and contributors', - '0.9.1', + '1.0', [ 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_CONTENT_ADMIN, + dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'type' => 'plugin', //'support' => 'http://forum.dotclear.org/viewtopic.php?id=42317', diff --git a/dcstore.xml b/dcstore.xml index 2bebe05..fcf75a9 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Files alias - 0.9.1 + 1.0 Osku and contributors Manage aliases of your blog's media - https://github.com/JcDenis/filesAlias/releases/download/v0.9.1/plugin-filesAlias.zip + https://github.com/JcDenis/filesAlias/releases/download/v1.0/plugin-filesAlias.zip 2.26 https://plugins.dotaddict.org/dc2/details/filesAlias https://github.com/JcDenis/filesAlias