From 09131d55930e5ddf29be7887f58551ffe1176a19 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 1 Dec 2022 10:35:08 +0100 Subject: [PATCH] lazy way to grab info --- _install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_install.php b/_install.php index b1258f5..4b8ef41 100644 --- a/_install.php +++ b/_install.php @@ -15,8 +15,6 @@ if (!defined('DC_CONTEXT_ADMIN')) { } # -- Module specs -- -$dc_min = '2.24'; -$mod_id = 'fac'; $mod_conf = [ [ 'fac_active', @@ -83,6 +81,10 @@ $mod_conf = [ # -- Nothing to change below -- try { + # Grab info + $mod_id = basename(__DIR__); + $dc_min = dcCore::app()->plugins->moduleInfo($mod_id, 'requires')[0][1]; + # Check module version if (version_compare( dcCore::app()->getVersion($mod_id),