mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Changed label agent version for agents with satellite os
This commit is contained in:
parent
2ee4f9d88f
commit
c652f758f4
@ -302,7 +302,11 @@ switch ($opt) {
|
||||
$osversion_offset = 0;
|
||||
}
|
||||
|
||||
$row[] = ui_print_os_icon($agent['id_os'], true, true).' (<i><span title="'.$agent['os_version'].'">'.substr($agent['os_version'], $osversion_offset, 15).'</span></i>)';
|
||||
if ($agent['os_version'] != '') {
|
||||
$agent_os_version = ' (<i><span title="'.$agent['os_version'].'">'.substr($agent['os_version'], $osversion_offset, 15).'</span></i>)';
|
||||
}
|
||||
|
||||
$row[] = ui_print_os_icon($agent['id_os'], true, true).$agent_os_version;
|
||||
$table->data[] = $row;
|
||||
|
||||
// URL
|
||||
@ -331,7 +335,12 @@ switch ($opt) {
|
||||
|
||||
// Agent version
|
||||
$row = [];
|
||||
$row[] = __('Agent Version');
|
||||
if (strtolower(get_os_name($agent['id_os'])) == 'satellite') {
|
||||
$row[] = __('Satellite Version');
|
||||
} else {
|
||||
$row[] = __('Agent Version');
|
||||
}
|
||||
|
||||
$row[] = $agent['agent_version'];
|
||||
$table->data[] = $row;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user