use new testVersion method

This commit is contained in:
Jean-Christian 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;
}