From 5e8594a11f786c121acf296d5c9f2fc7af0d2aa2 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 17:09:14 +0100 Subject: [PATCH] grab module id --- _install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_install.php b/_install.php index b694c70..b160208 100644 --- a/_install.php +++ b/_install.php @@ -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; }