auto find required info

master
Jean-Christian Paul Denis 2022-12-02 01:01:51 +01:00
parent acd90028eb
commit 49a5277f6f
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,6 @@ if (!defined('DC_CONTEXT_ADMIN')) {
# -- Module specs -- # -- Module specs --
$dc_min = '2.24';
$mod_id = 'licenseBootstrap';
$mod_conf = [ $mod_conf = [
[ [
'overwrite', 'overwrite',
@ -74,6 +72,10 @@ $mod_conf = [
# -- Nothing to change below -- # -- Nothing to change below --
try { try {
# Grab info
$mod_id = basename(__DIR__);
$dc_min = dcCore::app()->plugins->moduleInfo($mod_id, 'requires')[0][1];
# Check module version # Check module version
if (version_compare( if (version_compare(
dcCore::app()->getVersion($mod_id), dcCore::app()->getVersion($mod_id),