From 82701322f9eec717a767aebd66ae2ceccbb1882a Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 10 Dec 2022 15:37:35 +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 0b489b3..c4b60ae 100644 --- a/_install.php +++ b/_install.php @@ -15,10 +15,9 @@ if (!defined('DC_RC_PATH')) { } try { - if (version_compare( - dcCore::app()->getVersion(basename(__DIR__)), - dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version'), - '>=' + if (!dcCore::app()->newVersion( + basename(__DIR__), + dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version') )) { return null; }