fix static init

master
Jean-Christian Paul 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
{
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

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