fix nullsafe warnings

This commit is contained in:
Jean-Christian Denis 2023-04-23 14:57:00 +02:00
parent c172704a0d
commit f117336d3b
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -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__),