From 21212c2ec17b0d57b85edd33c5cf70835d52e0a8 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 26 Mar 2023 21:13:53 +0200 Subject: [PATCH] fix static init --- src/Backend.php | 6 +++--- src/Frontend.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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; }