summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
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/system_gateways_edit.php
parentfbb45bb034aad683b2bd207a497d0cfc0b1b5a1e (diff)
downloadpfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.zip
pfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.tar.gz
Continue interface improvements
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 9c1122f..4156066 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -163,10 +163,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq">Interface</td>
<td width="78%" class="vtable">
<select name="interface" class="formselect">
- <?php $interfaces = array('wan' => 'WAN', 'lan' => 'LAN');
- for ($i = 1; isset($config['interfaces']['opt' . $i]['enable']); $i++) {
- $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
- }
+ <?php $interfaces = get_configured_interface_with_descr(false, true);
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>>
<?=htmlspecialchars($ifacename);?>
OpenPOWER on IntegriCloud