lazy way to grab info
This commit is contained in:
parent
807214f658
commit
09131d5593
@ -15,8 +15,6 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# -- Module specs --
|
# -- Module specs --
|
||||||
$dc_min = '2.24';
|
|
||||||
$mod_id = 'fac';
|
|
||||||
$mod_conf = [
|
$mod_conf = [
|
||||||
[
|
[
|
||||||
'fac_active',
|
'fac_active',
|
||||||
@ -83,6 +81,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),
|
||||||
|
Loading…
Reference in New Issue
Block a user