diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-11-26 18:38:42 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-11-26 18:38:42 -0200 |
commit | a5249874001fa4ce91704ee1cc1891c0eb246025 (patch) | |
tree | d1c590ba9c3c2884eb99d8939b34dc126a47fbd0 /usr/local/www/system_routes_edit.php | |
parent | c83d04dcef93b05da5a3ece99aa53ee8ece341f2 (diff) | |
download | pfsense-a5249874001fa4ce91704ee1cc1891c0eb246025.zip pfsense-a5249874001fa4ce91704ee1cc1891c0eb246025.tar.gz |
Stop sorting static routed and leave user decide the order
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-x | usr/local/www/system_routes_edit.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php index 110375b..4fc531e 100755 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -39,19 +39,6 @@ ##|*MATCH=system_routes_edit.php* ##|-PRIV -function staticroutecmp($a, $b) { - return strcmp($a['network'], $b['network']); -} - -function staticroutes_sort() { - global $g, $config; - - if (!is_array($config['staticroutes']['route'])) - return; - - usort($config['staticroutes']['route'], "staticroutecmp"); -} - require_once("guiconfig.inc"); require_once("filter.inc"); require_once("util.inc"); @@ -209,7 +196,6 @@ if ($_POST) { } } file_put_contents("{$g['tmp_path']}/.system_routes.apply", serialize($toapplylist)); - staticroutes_sort(); mark_subsystem_dirty('staticroutes'); |