use dotclear method to check version
This commit is contained in:
parent
d2febcdeba
commit
5b225a3b29
@ -14,10 +14,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version_compare(
|
if (!dcCore::app()->newVersion(
|
||||||
dcCore::app()->getVersion('activityReport'),
|
basename(__DIR__),
|
||||||
dcCore::app()->plugins->moduleInfo('activityReport', 'version'),
|
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
|
||||||
'>='
|
|
||||||
)) {
|
)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user