split check
This commit is contained in:
parent
e6f3204e06
commit
d84442b2f5
@ -22,9 +22,10 @@ class Install extends dcNsProcess
|
||||
{
|
||||
public static function init(): bool
|
||||
{
|
||||
self::$init = defined('DC_CONTEXT_ADMIN')
|
||||
&& version_compare(phpversion(), My::PHP_MIN, '>=')
|
||||
if (defined('DC_CONTEXT_ADMIN')) {
|
||||
self::$init = version_compare(phpversion(), My::PHP_MIN, '>=')
|
||||
&& dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version'));
|
||||
}
|
||||
|
||||
return self::$init;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user