From 3da605b8cf3a4c0c177d45cb1b0762c8dad93b0d Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 10 Dec 2022 17:13:22 +0100 Subject: [PATCH] use new testVersion method --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 3cd8014..e0242bc 100644 --- a/index.php +++ b/index.php @@ -14,8 +14,10 @@ if (!defined('DC_CONTEXT_ADMIN')) { return null; } -if (dcCore::app()->getVersion('zoneclearFeedServer') != dcCore::app()->plugins->moduleInfo('zoneclearFeedServer', 'version') -) { +if (0 !== dcCore::app()->testVersion( + basename(__DIR__), + dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version') +)) { return null; }