From 1aaacef8a0b959cc22ef1f0eab20138a806b667f Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 18:02:30 +0100 Subject: [PATCH] grab module info --- _install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_install.php b/_install.php index ab80106..d370ac0 100644 --- a/_install.php +++ b/_install.php @@ -14,10 +14,12 @@ if (!defined('DC_CONTEXT_ADMIN')) { return null; } -$mod_id = 'zoneclearFeedServer'; -$dc_min = $this->modules[$mod_id]['requires'][0][1]; try { + # Grab module info + $mod_id = basename(__DIR__); + $dc_min = $this->modules[$mod_id]['requires'][0][1]; + # Check module version if (version_compare( dcCore::app()->getVersion($mod_id),