diff options
author | Phil Davis <phil.davis@inf.org> | 2017-03-30 10:01:23 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-03-30 10:01:23 +0545 |
commit | 1d3510cf6cc471b179d52e03f4cfe77e23b4b20b (patch) | |
tree | 51deff4531bf7b02da13f93e4b865cef6116515b /src/etc/inc/util.inc | |
parent | fe255e99389cb6f75a06c55797890c52bd934f0f (diff) | |
download | pfsense-1d3510cf6cc471b179d52e03f4cfe77e23b4b20b.zip pfsense-1d3510cf6cc471b179d52e03f4cfe77e23b4b20b.tar.gz |
Add user option to sort interface names
Diffstat (limited to 'src/etc/inc/util.inc')
-rw-r--r-- | src/etc/inc/util.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc index 74ffd9f..491405b 100644 --- a/src/etc/inc/util.inc +++ b/src/etc/inc/util.inc @@ -1416,7 +1416,7 @@ function get_configured_interface_list_by_realif($only_opt = false, $withdisable /* return the configured interfaces list with their description. */ function get_configured_interface_with_descr($only_opt = false, $withdisabled = false) { - global $config; + global $config, $user_settings; $iflist = array(); @@ -1433,8 +1433,11 @@ function get_configured_interface_with_descr($only_opt = false, $withdisabled = } } } - - asort($iflist); + + if ($user_settings['webgui']['interfacessort']) { + asort($iflist); + } + return $iflist; } |