mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
UX console in progress... (Added hierachy system to modules in tree view)
This commit is contained in:
parent
c99ff92c86
commit
e41af015fb
@ -1113,9 +1113,7 @@ class Tree {
|
|||||||
return array();
|
return array();
|
||||||
|
|
||||||
if ($this->type == 'agent') {
|
if ($this->type == 'agent') {
|
||||||
//html_debug($data, true);
|
|
||||||
$data = $this->getProcessedModules($data);
|
$data = $this->getProcessedModules($data);
|
||||||
html_debug($data, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
@ -1441,6 +1439,12 @@ class Tree {
|
|||||||
protected function processModule (&$module, $server = false) {
|
protected function processModule (&$module, $server = false) {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
if (isset($module['children'])) {
|
||||||
|
foreach ($module['children'] as $i => $children) {
|
||||||
|
$this->processModule($module['children'][$i], $server);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$module['type'] = 'module';
|
$module['type'] = 'module';
|
||||||
$module['id'] = (int) $module['id'];
|
$module['id'] = (int) $module['id'];
|
||||||
$module['name'] = $module['name'];
|
$module['name'] = $module['name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user