auto find required info
This commit is contained in:
parent
acd90028eb
commit
49a5277f6f
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user