diff --git a/src/Install.php b/src/Install.php index 58aa550..bd52aa6 100644 --- a/src/Install.php +++ b/src/Install.php @@ -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; } diff --git a/src/Prepend.php b/src/Prepend.php index a40703a..cda5923 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -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; }