Browse Source

copypaste is wrong

rajven 4 năm trước cách đây
mục cha
commit
738ff14820
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      html/inc/common.php

+ 2 - 2
html/inc/common.php

@@ -937,8 +937,8 @@ function print_auth_select_mac($db, $login_name, $current_auth)
 function compact_port_name($port)
 {
 $result = preg_replace('/^GigabitEthernet/','Gi',$port);
-$result = preg_replace('/^XGigabitEthernet/','X',$port);
-$result = preg_replace('/^TenGigabitEthernet/','Te',$port);
+$result = preg_replace('/^XGigabitEthernet/','X',$result);
+$result = preg_replace('/^TenGigabitEthernet/','Te',$result);
 return $result;
 }