fix static init

This commit is contained in:
Jean-Christian Denis 2023-03-26 21:12:49 +02:00
parent 4b624c4735
commit a3bb29bd64
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -113,7 +113,7 @@ class Manage extends dcNsProcess
public static function render(): void public static function render(): void
{ {
if (!self::$init) { if (!static::$init) {
return; return;
} }