use dotclear method to check version

This commit is contained in:
Jean-Christian Paul Denis 2022-12-10 15:04:01 +01:00
parent ec3c42e4e7
commit 64a976ac19
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

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