@@ -64,7 +64,7 @@ |
||
64 | 64 | 'type' => 'many', |
65 | 65 | 'model' => 'Menu\Item', |
66 | 66 | 'col' => 'Menu_id', |
67 | - 'where'=>[['parent_id',0]] |
|
67 | + 'where'=>[['parent_id', 0]] |
|
68 | 68 | ], |
69 | 69 | 'group' => [ |
70 | 70 | 'col' => 'group_id', |
@@ -6,7 +6,7 @@ |
||
6 | 6 | $code = 'main'; |
7 | 7 | } |
8 | 8 | $uid = Tools::randomString(); |
9 | -$childDraws = function($item, $childDraws, $uid) { |
|
9 | +$childDraws = function ($item, $childDraws, $uid) { |
|
10 | 10 | if ($item->childs(['order' => ['weight', 'asc']])) { |
11 | 11 | echo "<ul class ='dropdown-menu'>"; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | if (empty($code)) { |
7 | 7 | $code = 'main'; |
8 | 8 | } |
9 | -$childDraws = function($item, $childDraws) { |
|
9 | +$childDraws = function ($item, $childDraws) { |
|
10 | 10 | if ($item->childs(['order' => ['weight', 'asc']])) { |
11 | 11 | echo "<ul class ='list-unstyled'>"; |
12 | 12 | foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) { |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <h1>Установка модулей</h1> |
2 | 2 | <form> |
3 | 3 | <?php |
4 | - $config = Config::app(App::$primary ? App::$primary : App::$cur); |
|
5 | - $modules = array_flip(Module::getInstalled(App::$cur)); |
|
6 | - $systemModules = array_merge(array_slice(scandir(INJI_SYSTEM_DIR . '/modules'), 2), array_slice(scandir(App::$primary->path . '/modules'), 2)); |
|
7 | - foreach ($systemModules as $module) { |
|
8 | - $info = Module::getInfo($module); |
|
9 | - if (!$info || isset($modules[$module])) { |
|
10 | - continue; |
|
11 | - } |
|
12 | - ?> |
|
4 | + $config = Config::app(App::$primary ? App::$primary : App::$cur); |
|
5 | + $modules = array_flip(Module::getInstalled(App::$cur)); |
|
6 | + $systemModules = array_merge(array_slice(scandir(INJI_SYSTEM_DIR . '/modules'), 2), array_slice(scandir(App::$primary->path . '/modules'), 2)); |
|
7 | + foreach ($systemModules as $module) { |
|
8 | + $info = Module::getInfo($module); |
|
9 | + if (!$info || isset($modules[$module])) { |
|
10 | + continue; |
|
11 | + } |
|
12 | + ?> |
|
13 | 13 | <div class ="form-group"> |
14 | 14 | <div class="checkbox"> |
15 | 15 | <label> |