mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix typo and reorder string replacements
This commit is contained in:
@@ -763,8 +763,8 @@ function get_client_ip() {
|
|||||||
function shorten_interface_type($string) {
|
function shorten_interface_type($string) {
|
||||||
|
|
||||||
return str_ireplace(
|
return str_ireplace(
|
||||||
array('FastEthernet','GigbitEthernet','TenGigabitEthernet','Port-Channel','Ethernet'),
|
array('FastEthernet','TenGigabitEthernet','GigabitEthernet','Port-Channel','Ethernet'),
|
||||||
array('Fa','Gi','Te','Po','Eth'),
|
array('Fa','Te','Gi','Po','Eth'),
|
||||||
$string
|
$string
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user