grab module id

master
Jean-Christian Paul Denis 2022-12-03 17:09:14 +01:00
parent 9014735339
commit 5e8594a11f
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 1 deletions

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;
}