remove unusefull code

This commit is contained in:
Jean-Christian Paul Denis 2023-08-06 19:12:48 +02:00
parent aa8963901a
commit bab1d2accd
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 0 additions and 11 deletions

View File

@ -22,7 +22,6 @@ class Backend extends dcNsProcess
public static function init(): bool
{
static::$init = defined('DC_CONTEXT_ADMIN')
&& !is_null(dcCore::app()->auth) // nullsafe PHP < 8.0
&& dcCore::app()->auth->isSuperAdmin();
return static::$init;

View File

@ -26,22 +26,12 @@ class BackendBehaviors
# admin plugins page tab
public static function pluginsTabs(): void
{
// nullsafe PHP < 8.0
if (is_null(dcCore::app()->adminurl)) {
return;
}
self::modulesToolsTabs(dcCore::app()->plugins, explode(',', DC_DISTRIB_PLUGINS), dcCore::app()->adminurl->get('admin.plugins'));
}
# admin themes page tab
public static function themesTabs(): void
{
// nullsafe PHP < 8.0
if (is_null(dcCore::app()->adminurl)) {
return;
}
self::modulesToolsTabs(dcCore::app()->themes, explode(',', DC_DISTRIB_THEMES), dcCore::app()->adminurl->get('admin.blog.theme'));
}