Revision 3666d731
Added by Phil Davis about 8 years ago
src/etc/inc/util.inc | ||
---|---|---|
1446 | 1446 |
|
1447 | 1447 |
/* return the configured interfaces list with their description. */ |
1448 | 1448 |
function get_configured_interface_with_descr($only_opt = false, $withdisabled = false) { |
1449 |
global $config; |
|
1449 |
global $config, $user_settings;
|
|
1450 | 1450 |
|
1451 | 1451 |
$iflist = array(); |
1452 | 1452 |
|
... | ... | |
1464 | 1464 |
} |
1465 | 1465 |
} |
1466 | 1466 |
|
1467 |
if ($user_settings['webgui']['interfacessort']) { |
|
1468 |
asort($iflist); |
|
1469 |
} |
|
1470 |
|
|
1467 | 1471 |
return $iflist; |
1468 | 1472 |
} |
1469 | 1473 |
|
Also available in: Unified diff
Add user option to sort interface names RELENG_2_3
Signed-off-by: Phil Davis <phil@jankaritech.com>