fix static init

master
Jean-Christian Paul Denis 2023-03-26 21:13:53 +02:00
parent dc65fa2c88
commit 21212c2ec1
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}