diff --git a/src/Backend.php b/src/Backend.php index 7ab9df8..377a7fc 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -30,14 +30,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 1de7af3..9525894 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -22,14 +22,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; } diff --git a/src/Prepend.php b/src/Prepend.php index 1d8277b..c42d964 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -21,14 +21,14 @@ class Prepend extends dcNsProcess { public static function init(): bool { - self::$init = true; + static::$init = true; - return self::$init; + return static::$init; } public static function process(): bool { - if (!self::$init) { + if (!static::$init) { return false; }