修复获取模块信息bug
This commit is contained in:
parent
49500956dd
commit
f21716d5a6
@ -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 [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user