From 5b225a3b29769fda79a4c58b861000ab2ca404e8 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 10 Dec 2022 14:46:17 +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 1891b2c..ec62eed 100644 --- a/_install.php +++ b/_install.php @@ -14,10 +14,9 @@ if (!defined('DC_CONTEXT_ADMIN')) { return null; } -if (version_compare( - dcCore::app()->getVersion('activityReport'), - dcCore::app()->plugins->moduleInfo('activityReport', 'version'), - '>=' +if (!dcCore::app()->newVersion( + basename(__DIR__), + dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version') )) { return null; }