split check
This commit is contained in:
parent
e6f3204e06
commit
d84442b2f5
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue