fix static init
This commit is contained in:
parent
7c7711a367
commit
942f04b671
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue