فهرست منبع

copypaste is wrong

rajven 4 سال پیش
والد
کامیت
738ff14820
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;
 }