From 35db5122305fa3a9ae6a09cc4037fe494612a918 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 00:24:31 +0100 Subject: [PATCH] no more need to set version --- _install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_install.php b/_install.php index 6211218..d43cd06 100644 --- a/_install.php +++ b/_install.php @@ -18,10 +18,13 @@ try { # Grab info $mod_id = basename(__DIR__); $dc_min = dcCore::app()->plugins->moduleInfo($mod_id, 'requires')[0][1]; - $new_version = dcCore::app()->plugins->moduleInfo($mod_id, 'version'); # Check installed version - if (version_compare(dcCore::app()->getVersion($mod_id), $new_version, '>=')) { + if (version_compare( + dcCore::app()->getVersion($mod_id), + dcCore::app()->plugins->moduleInfo($mod_id, 'version'), + '>=' + )) { return null; } @@ -65,9 +68,6 @@ try { $s->put('periodical_updurl', false, 'boolean', 'Update post url', false, true); $s->put('periodical_pub_order', 'post_dt asc', 'string', 'Order of publication', false, true); - # Version - dcCore::app()->setVersion($mod_id, $new_version); - return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage());