fix init check

This commit is contained in:
Jean-Christian Denis 2023-03-21 21:37:06 +01:00
parent 8d0047ddcd
commit f90d9104b1
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
3 changed files with 9 additions and 9 deletions

View file

@ -30,14 +30,14 @@ class Backend extends dcNsProcess
{ {
public static function init(): bool 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 public static function process(): bool
{ {
if (!self::$init) { if (!static::$init) {
return false; return false;
} }

View file

@ -22,14 +22,14 @@ class Frontend extends dcNsProcess
{ {
public static function init(): bool 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 public static function process(): bool
{ {
if (!self::$init) { if (!static::$init) {
return false; return false;
} }

View file

@ -21,14 +21,14 @@ class Prepend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
self::$init = true; static::$init = true;
return self::$init; return static::$init;
} }
public static function process(): bool public static function process(): bool
{ {
if (!self::$init) { if (!static::$init) {
return false; return false;
} }