use dotclear method to check version
This commit is contained in:
parent
a374e6d918
commit
1bc9e6e7bf
@ -15,12 +15,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$mod_id = basename(__DIR__);
|
if (!dcCore::app()->newVersion(
|
||||||
|
basename(__DIR__),
|
||||||
if (version_compare(
|
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
|
||||||
dcCore::app()->getVersion($mod_id),
|
|
||||||
dcCore::app()->plugins->moduleInfo($mod_id, 'version'),
|
|
||||||
'>='
|
|
||||||
)) {
|
)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user