From 8c9533231eda11d8ddb8b9b6c3453bd3c541a0a2 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 10 Dec 2022 15:04:58 +0100 Subject: [PATCH] use dotclear method to check version --- _install.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/_install.php b/_install.php index be14ef7..801d8d1 100644 --- a/_install.php +++ b/_install.php @@ -15,10 +15,9 @@ if (!defined('DC_CONTEXT_ADMIN')) { } try { - if (version_compare( - dcCore::app()->getVersion('dcAdvancedCleaner'), - dcCore::app()->plugins->moduleInfo('dcAdvancedCleaner', 'version'), - '>=' + if (!dcCore::app()->newVersion( + basename(__DIR__), + dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version') )) { return null; }