split check

This commit is contained in:
Jean-Christian Paul Denis 2023-03-17 21:18:56 +01:00
parent e6f3204e06
commit d84442b2f5
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -22,9 +22,10 @@ class Install extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
self::$init = defined('DC_CONTEXT_ADMIN') if (defined('DC_CONTEXT_ADMIN')) {
&& version_compare(phpversion(), My::PHP_MIN, '>=') self::$init = version_compare(phpversion(), My::PHP_MIN, '>=')
&& dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version')); && dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
}
return self::$init; return self::$init;
} }