Fixed tag i in status monitor data
This commit is contained in:
parent
b50e94097b
commit
42967862c8
|
@ -1336,7 +1336,15 @@ if (!empty($result)) {
|
|||
$salida = $data_macro;
|
||||
} else {
|
||||
$salida .= ' ' . '<i>' . io_safe_output($row['unit']) . '</i>';
|
||||
$salida = ui_print_truncate_text($salida, 'agent_small', true, true, false, '[…]', 'font-size:7.5pt;');
|
||||
if(strlen($salida) > $config['agent_size_text_small']) {
|
||||
$salida = ui_print_truncate_text($salida, 'agent_small', true, true, false, '[…]', 'font-size:7.5pt;');
|
||||
//clean tag <i>
|
||||
$text_aux = explode('<a',$salida);
|
||||
$match = preg_replace('/(<i>|<\/i>|<i|<\/i|i>|\/i>|<|>)/', "", $text_aux[0]);
|
||||
$salida = $match.'<a'.$text_aux[1];
|
||||
} else {
|
||||
$salida = ui_print_truncate_text($salida, 'agent_small', true, true, false, '[…]', 'font-size:7.5pt;');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue