use dotclear method to check version
This commit is contained in:
parent
f440e7b11c
commit
82701322f9
1 changed files with 3 additions and 4 deletions
|
@ -15,10 +15,9 @@ if (!defined('DC_RC_PATH')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (version_compare(
|
if (!dcCore::app()->newVersion(
|
||||||
dcCore::app()->getVersion(basename(__DIR__)),
|
basename(__DIR__),
|
||||||
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version'),
|
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
|
||||||
'>='
|
|
||||||
)) {
|
)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue