mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixes for the metaconsole
This commit is contained in:
parent
388c8f2b1b
commit
601cf56007
@ -628,7 +628,7 @@ class Tree {
|
|||||||
return $children;
|
return $children;
|
||||||
}
|
}
|
||||||
|
|
||||||
function __getProcessedItem($itemKey, &$items) {
|
function __getProcessedItem($itemKey, &$items, $server_id = false) {
|
||||||
if (!isset($items[$itemKey])) {
|
if (!isset($items[$itemKey])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -642,6 +642,10 @@ class Tree {
|
|||||||
$processed_item['name'] = $item['_name_'];
|
$processed_item['name'] = $item['_name_'];
|
||||||
$processed_item['searchChildren'] = 1;
|
$processed_item['searchChildren'] = 1;
|
||||||
|
|
||||||
|
if (defined ('METACONSOLE') && $server_id) {
|
||||||
|
$processed_item['server_id'] = $server_id;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($item['_is_tag_']) && $item['_is_tag_']) {
|
if (isset($item['_is_tag_']) && $item['_is_tag_']) {
|
||||||
$processed_item['type'] = 'tag';
|
$processed_item['type'] = 'tag';
|
||||||
}
|
}
|
||||||
@ -715,7 +719,7 @@ class Tree {
|
|||||||
if (empty($item['_parent_id_']))
|
if (empty($item['_parent_id_']))
|
||||||
$processed_items[] = __getProcessedItem($key, $items);
|
$processed_items[] = __getProcessedItem($key, $items);
|
||||||
}
|
}
|
||||||
$item_list[$server['id']] = $processed_items;
|
$item_list += $processed_items;
|
||||||
|
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user