dependences

This commit is contained in:
stasbilay02 committed 2024-10-10 16:45:53 +03:00
1 parent e29108f21d
commit 2711c0258d
4 files changed
+26 -13

No files matched your search

+3 -3
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);
}