diff options
author | Ermal <eri@pfsense.org> | 2013-01-05 14:51:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-05 14:51:54 +0000 |
commit | 0c8e9f0c26b29f57faa2ccef9a559774103fee79 (patch) | |
tree | a2c8a38693353291375538d7e16febda29721653 | |
parent | e99ba2d66e915904626fd90ecc87711169189bdc (diff) | |
download | pfsense-0c8e9f0c26b29f57faa2ccef9a559774103fee79.zip pfsense-0c8e9f0c26b29f57faa2ccef9a559774103fee79.tar.gz |
Use get_Cofnigured_interface_with_descr() here since that's the purpose
-rwxr-xr-x | usr/local/www/firewall_nat_out.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index 3c3fc54..d777d23 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -367,20 +367,17 @@ include("head.inc"); </table> </td> </tr> - <?php $nnats = $i = 0; foreach ($a_out as $natent): ?> - <?php - global $FilterIflist; - if(empty($FilterIflist)) { - filter_generate_optcfg_array(); - } - if (!$natent['interface'] || !isset($FilterIflist[$natent['interface']])) - continue; + <?php + $ifdescr = get_configured_interface_with_descr(false, true); + $nnats = $i = 0; foreach ($a_out as $natent): + if (!$natent['interface'] || !isset($ifdescr[$natent['interface']])) + continue; ?> <tr valign="top" id="fr<?=$nnats;?>"> <td class="listt"><input type="checkbox" id="frc<?=$nnats;?>" name="rule[]" value="<?=$i;?>" onClick="fr_bgcolor('<?=$nnats;?>')" style="margin: 0; padding: 0; width: 15px; height: 15px;"></td> <td class="listt" align="center"></td> <td class="listlr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';"> - <?php echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface'])); ?> + <?php echo htmlspecialchars($ifdescr[$natent['interface']]); ?> </td> <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';"> |