dependences

This commit is contained in:
2024-10-10 16:45:53 +03:00
parent e29108f21d
commit 2711c0258d
4 changed files with 26 additions and 13 deletions

View File

@ -24,10 +24,10 @@ class ModuleController extends AdminController
public function actionIndex(): void
{
$admin_theme_paths = Option::where("key", "module_paths")->first();
$module_paths = Option::where("key", "module_paths")->first();
$dirs = [];
if ($admin_theme_paths){
$path = json_decode($admin_theme_paths->value);
if ($module_paths){
$path = json_decode($module_paths->value);
foreach ($path->paths as $p){
$dirs[] = getConst($p);
}