grab module id

This commit is contained in:
Jean-Christian Paul Denis 2022-12-03 17:09:14 +01:00
parent 9014735339
commit 5e8594a11f
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -13,9 +13,10 @@
if (!defined('DC_CONTEXT_ADMIN')) {
return null;
}
$id = 'translater';
try {
$id = basename(__DIR__);
if (version_compare(dcCore::app()->getVersion($id), dcCore::app()->plugins->moduleInfo($id, 'version'), '>=')) {
return null;
}