summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/include
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-21 17:38:13 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-21 17:38:13 +0000
commit3e321df2be59d2bb4c2ffd51e410fe120517e316 (patch)
tree138e5336181e4a7e6d270301ea6208ad91e733bc /usr/local/www/widgets/include
parentfbb45bb034aad683b2bd207a497d0cfc0b1b5a1e (diff)
downloadpfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.zip
pfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.tar.gz
Continue interface improvements
Diffstat (limited to 'usr/local/www/widgets/include')
-rw-r--r--usr/local/www/widgets/include/log.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/widgets/include/log.inc b/usr/local/www/widgets/include/log.inc
index e9575a4..74d7c17 100644
--- a/usr/local/www/widgets/include/log.inc
+++ b/usr/local/www/widgets/include/log.inc
@@ -21,8 +21,9 @@ function conv_clog_filter($logfile, $tail = 8) {
$iftable = array();
$iftable[$config['interfaces']['lan']['if']] = "LAN";
$iftable[get_real_wan_interface()] = "WAN";
- for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++)
- $iftable[$config['interfaces']['opt' . $i]['if']] = $config['interfaces']['opt' . $i]['descr'];
+ $iflist = get_configured_interface_with_descr(true);
+ foreach ($iflist as $ifl => $ifdesc)
+ $iftable[$config['interfaces'][$if]['if']] = $ifdesc;
$sor = isset($config['syslog']['reverse']) ? "-r" : "";
@@ -174,4 +175,4 @@ function handle_ajax() {
exit;
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud