grab module info

This commit is contained in:
Jean-Christian Paul Denis 2022-12-03 18:02:30 +01:00
parent b74a724fb5
commit 1aaacef8a0
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -14,10 +14,12 @@ if (!defined('DC_CONTEXT_ADMIN')) {
return null;
}
$mod_id = 'zoneclearFeedServer';
$dc_min = $this->modules[$mod_id]['requires'][0][1];
try {
# Grab module info
$mod_id = basename(__DIR__);
$dc_min = $this->modules[$mod_id]['requires'][0][1];
# Check module version
if (version_compare(
dcCore::app()->getVersion($mod_id),