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
|
* @author Pierre Rudloff and contributors
|
||||||
*
|
*
|
||||||
* @copyright Jean-Christian Denis
|
* @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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,12 +18,12 @@ $this->registerModule(
|
|||||||
'Clean URLs',
|
'Clean URLs',
|
||||||
'Removes diacritics and punctuation from URLs',
|
'Removes diacritics and punctuation from URLs',
|
||||||
'Pierre Rudloff and contributors',
|
'Pierre Rudloff and contributors',
|
||||||
'1.3.2',
|
'1.4',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.25']],
|
'requires' => [['core', '2.26']],
|
||||||
'permissions' => dcCore::app()->auth->makePermissions([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
dcAuth::PERMISSION_USAGE,
|
dcCore::app()->auth::PERMISSION_USAGE,
|
||||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
dcCore::app()->auth::PERMISSION_CONTENT_ADMIN,
|
||||||
]),
|
]),
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
||||||
|
Loading…
Reference in New Issue
Block a user