From f21716d5a6b3dd3278571e78015fcaea52362c8f Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sat, 20 Jun 2020 08:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=BF=A1=E6=81=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/catcher/CatchAdmin.php b/extend/catcher/CatchAdmin.php index f786207..28f9191 100644 --- a/extend/catcher/CatchAdmin.php +++ b/extend/catcher/CatchAdmin.php @@ -205,8 +205,8 @@ class CatchAdmin */ public static function getModuleInfo($module) { - if (file_exists($module . DIRECTORY_SEPARATOR . 'module.json')) { - return \json_decode(file_get_contents($module . DIRECTORY_SEPARATOR . 'module.json'), true); + if (file_exists(self::moduleDirectory($module) . DIRECTORY_SEPARATOR . 'module.json')) { + return \json_decode(file_get_contents(self::moduleDirectory($module) . DIRECTORY_SEPARATOR . 'module.json'), true); } return [];