diff --git a/CHANGELOG.md b/CHANGELOG.md index f7c5c29..96a51ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +2023.05.13 +- require dotclear 2.26 +- fix type hint and nullsafe warnings + 2023.04.22 - require dotclear 2.26 - use latest helper namespace diff --git a/_define.php b/_define.php index 5801405..c8b7c2c 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,12 +18,12 @@ $this->registerModule( 'Last blog update', 'Show the dates of last updates of your blog in a widget', 'Jean-Christian Denis, Pierre Van Glabeke', - '2023.04.22', + '2023.05.13', [ 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_USAGE, - dcAuth::PERMISSION_CONTENT_ADMIN, + dcCore::app()->auth::PERMISSION_USAGE, + dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'type' => 'plugin', 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332950#p332950', diff --git a/dcstore.xml b/dcstore.xml index 4bb2b58..2503db4 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Last blog update - 2023.04.22 + 2023.05.13 Jean-Christian Denis, Pierre Van Glabeke Show the dates of last updates of your blog in a widget - https://github.com/JcDenis/lastBlogUpdate/releases/download/v2023.04.22/plugin-lastBlogUpdate.zip + https://github.com/JcDenis/lastBlogUpdate/releases/download/v2023.05.13/plugin-lastBlogUpdate.zip 2.26 http://plugins.dotaddict.org/dc2/details/lastBlogUpdate http://forum.dotclear.org/viewtopic.php?pid=332950#p332950