fix static init

master
Jean-Christian Paul Denis 2023-03-26 21:15:13 +02:00
parent 4cb9fbc744
commit 8c276b9c65
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 9 additions and 9 deletions

View File

@ -30,14 +30,14 @@ class Install extends dcNsProcess
public static function init(): bool
{
self::$init = defined('DC_CONTEXT_ADMIN') && dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
static::$init = defined('DC_CONTEXT_ADMIN') && dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
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 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;
}

View File

@ -20,14 +20,14 @@ class Uninstall
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($uninstaller): ?bool
{
if (!self::$init) {
if (!static::$init) {
return false;
}