From f117336d3ba463a43e056d203b797860ae71eb55 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 14:57:00 +0200 Subject: [PATCH] fix nullsafe warnings --- _define.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_define.php b/_define.php index 2dd15fd..3732717 100644 --- a/_define.php +++ b/_define.php @@ -8,9 +8,9 @@ * @author Pierre Rudloff and contributors * * @copyright Jean-Christian Denis - * @copyright GPL-3.0 https://www.gnu.org/licenses/gpl-3.0.html + * @copyright GPL-3.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; } @@ -18,12 +18,12 @@ $this->registerModule( 'Clean URLs', 'Removes diacritics and punctuation from URLs', 'Pierre Rudloff and contributors', - '1.3.2', + '1.4', [ - 'requires' => [['core', '2.25']], + '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' => 'https://github.com/JcDenis/' . basename(__DIR__),