use dotclear method to check version

This commit is contained in:
Jean-Christian Denis 2022-12-10 14:46:17 +01:00
parent d2febcdeba
commit 5b225a3b29
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -14,10 +14,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
return null;
}
if (version_compare(
dcCore::app()->getVersion('activityReport'),
dcCore::app()->plugins->moduleInfo('activityReport', 'version'),
'>='
if (!dcCore::app()->newVersion(
basename(__DIR__),
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
)) {
return null;
}