From f90d9104b1cfc6191ed208f30c375e1b07d53ee7 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 21 Mar 2023 21:37:06 +0100 Subject: [PATCH] fix init check --- src/Backend.php | 6 +++--- src/Frontend.php | 6 +++--- src/Prepend.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) 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; }