From 49a5277f6f1eb587ec4631bd66ed841ec180662e Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 2 Dec 2022 01:01:51 +0100 Subject: [PATCH] auto find required info --- _install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_install.php b/_install.php index caadb0d..151b81e 100644 --- a/_install.php +++ b/_install.php @@ -16,8 +16,6 @@ if (!defined('DC_CONTEXT_ADMIN')) { # -- Module specs -- -$dc_min = '2.24'; -$mod_id = 'licenseBootstrap'; $mod_conf = [ [ 'overwrite', @@ -74,6 +72,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),