diff --git a/src/Backend.php b/src/Backend.php index 964c08f..aec5073 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -21,14 +21,14 @@ class Backend extends dcNsProcess { public static function init(): bool { - self::$init = defined('DC_CONTEXT_ADMIN'); + static::$init = defined('DC_CONTEXT_ADMIN'); - return self::$init; + return static::$init; } public static function process(): bool { - if (!self::$init) { + if (!static::$init) { return false; } diff --git a/src/Frontend.php b/src/Frontend.php index e1a92de..6e67f7a 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -21,14 +21,14 @@ class Frontend extends dcNsProcess { public static function init(): bool { - self::$init = defined('DC_RC_PATH'); + static::$init = defined('DC_RC_PATH'); - return self::$init; + return static::$init; } public static function process(): bool { - if (!self::$init) { + if (!static::$init) { return false; }