grab module info
This commit is contained in:
parent
b74a724fb5
commit
1aaacef8a0
@ -14,10 +14,12 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$mod_id = 'zoneclearFeedServer';
|
|
||||||
$dc_min = $this->modules[$mod_id]['requires'][0][1];
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
# Grab module info
|
||||||
|
$mod_id = basename(__DIR__);
|
||||||
|
$dc_min = $this->modules[$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