summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_gateways.php')
-rwxr-xr-xusr/local/www/system_gateways.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php
index 97599b7..b3ac304 100755
--- a/usr/local/www/system_gateways.php
+++ b/usr/local/www/system_gateways.php
@@ -127,9 +127,7 @@ effect.");?><br>
</td>
<td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
<?php
- $iflabels = array('wan' => 'WAN', 'lan' => 'LAN');
- for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++)
- $iflabels['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
+ $iflabels = get_configured_interface_with_descr();
echo htmlspecialchars($iflabels[$gateway['interface']]); ?>
</td>
<td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
OpenPOWER on IntegriCloud