Update ModulesManager.php

This commit is contained in:
Bozhidar 2024-04-29 11:04:33 +03:00
parent 886db3aa45
commit 2133e5cb54

View file

@ -30,7 +30,7 @@ class ModulesManager
public static function getModuleInfo($module)
{
if (!is_dir(base_path('Modules/' . $module))) {
unset($modules[$key]);
return [];
}
$moduleJson = file_get_contents(base_path('Modules/' . $module . '/module.json'));
$moduleJson = json_decode($moduleJson, true);