diff --git a/src/Install.php b/src/Install.php index 2945e25..84e444e 100644 --- a/src/Install.php +++ b/src/Install.php @@ -30,14 +30,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/Prepend.php b/src/Prepend.php index f0c227e..6d6ce06 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -21,14 +21,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; } diff --git a/src/Uninstall.php b/src/Uninstall.php index 7896269..65fcc71 100644 --- a/src/Uninstall.php +++ b/src/Uninstall.php @@ -20,14 +20,14 @@ class Uninstall public static function init(): bool { - self::$init = defined('DC_RC_PATH'); + static::$init = defined('DC_RC_PATH'); - return self::$init; + return static::$init; } public static function process($uninstaller): ?bool { - if (!self::$init) { + if (!static::$init) { return false; }