fix static init

This commit is contained in:
Jean-Christian Denis 2023-03-26 21:05:56 +02:00
parent 7c7711a367
commit 942f04b671
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 6 additions and 6 deletions

View file

@ -42,14 +42,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 (!sestaticlf::$init) {
return false;
}

View file

@ -22,14 +22,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;
}