use new testVersion method

This commit is contained in:
Jean-Christian Paul Denis 2022-12-10 17:13:22 +01:00
parent b503f5efc5
commit 3da605b8cf
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -14,8 +14,10 @@ if (!defined('DC_CONTEXT_ADMIN')) {
return null;
}
if (dcCore::app()->getVersion('zoneclearFeedServer') != dcCore::app()->plugins->moduleInfo('zoneclearFeedServer', 'version')
) {
if (0 !== dcCore::app()->testVersion(
basename(__DIR__),
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
)) {
return null;
}