use dotclear method to check version

master
Jean-Christian Paul Denis 2022-12-10 15:04:58 +01:00
parent b5c6ff740a
commit 8c9533231e
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 3 additions and 4 deletions

View File

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