mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(legacy) ditch compare_interface_friendly_names
This commit is contained in:
parent
26a6680224
commit
14d53f5b8d
@ -741,23 +741,6 @@ function get_configured_vips_list()
|
||||
return $alias_list;
|
||||
}
|
||||
|
||||
/* comparison function for sorting by the order in which interfaces are normally created */
|
||||
function compare_interface_friendly_names($a, $b)
|
||||
{
|
||||
if ($a == $b) {
|
||||
return 0;
|
||||
} elseif ($a == 'wan') {
|
||||
return -1;
|
||||
} elseif ($b == 'wan') {
|
||||
return 1;
|
||||
} elseif ($a == 'lan') {
|
||||
return -1;
|
||||
} elseif ($b == 'lan') {
|
||||
return 1;
|
||||
}
|
||||
return strnatcmp($a, $b);
|
||||
}
|
||||
|
||||
/* return the configured interfaces list. */
|
||||
function get_configured_interface_list($only_opt = false, $withdisabled = false)
|
||||
{
|
||||
|
||||
@ -165,7 +165,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
interface_sync_wireless_clones($config['interfaces'][$newifname], false);
|
||||
}
|
||||
|
||||
uksort($config['interfaces'], "compare_interface_friendly_names");
|
||||
write_config();
|
||||
header("Location: interfaces_assign.php");
|
||||
exit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user