fix nullsafe warnings
This commit is contained in:
parent
c172704a0d
commit
f117336d3b
12
_define.php
12
_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__),
|
||||
|
Loading…
Reference in New Issue
Block a user