From 870bcb024bf2448cdc9d0d31d87059f05853102e Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 7 Dec 2022 23:56:25 +0100 Subject: [PATCH] no more need to set version --- _install.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/_install.php b/_install.php index b613f31..5cbc43c 100644 --- a/_install.php +++ b/_install.php @@ -17,8 +17,11 @@ if (!defined('DC_CONTEXT_ADMIN')) { try { $mod_id = basename(__DIR__); - $version = dcCore::app()->plugins->moduleInfo($mod_id, 'version'); - if (version_compare(dcCore::app()->getVersion($mod_id), $version, '>=')) { + if (version_compare( + dcCore::app()->getVersion($mod_id), + dcCore::app()->plugins->moduleInfo($mod_id, 'version'), + '>=' + )) { return null; } @@ -40,8 +43,6 @@ try { $si = new dbStruct(dcCore::app()->con, dcCore::app()->prefix); $changes = $si->synchronize($s); - dcCore::app()->setVersion($mod_id, $version); - return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage());