diff --git a/src/Install.php b/src/Install.php index c8b6aad..4ae6e1e 100644 --- a/src/Install.php +++ b/src/Install.php @@ -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; } diff --git a/src/Manage.php b/src/Manage.php index 0f22c48..a4a5b1d 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -113,7 +113,7 @@ class Manage extends dcNsProcess public static function render(): void { - if (!self::$init) { + if (!static::$init) { return; }