Refactorized snapshot link on meta
This commit is contained in:
parent
7b22caaea8
commit
c1269ca23f
|
@ -273,7 +273,8 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head =
|
|||
$link = ui_get_snapshot_link( array(
|
||||
'id_module' => $module['id_agente_modulo'],
|
||||
'interval' => $module['current_interval'],
|
||||
'module_name' => $module['module_name']
|
||||
'module_name' => $module['module_name'],
|
||||
'id_node' => empty($server_id) ? 0 : $server_id
|
||||
));
|
||||
$salida = ui_get_snapshot_image($link, $is_snapshot) . ' ';
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ $id_node = get_parameter("id_node", 0);
|
|||
|
||||
// Get the data
|
||||
if ($id_node > 0) {
|
||||
$connection = metaconsole_get_connection_by_id($server_name);
|
||||
$connection = metaconsole_get_connection_by_id($id_node);
|
||||
if (metaconsole_load_external_db($connection) != NOERR) {
|
||||
echo "Node connection fail";
|
||||
exit;
|
||||
|
|
|
@ -1305,7 +1305,8 @@ if (!empty($result)) {
|
|||
$link = ui_get_snapshot_link( array(
|
||||
'id_module' => $row['id_agente_modulo'],
|
||||
'interval' => $row['current_interval'],
|
||||
'module_name' => $row['module_name']
|
||||
'module_name' => $row['module_name'],
|
||||
'id_node' => $row['server_id']
|
||||
));
|
||||
$salida = ui_get_snapshot_image($link, $is_snapshot) . ' ';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue