summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-07 21:07:47 +0000
committerErmal <eri@pfsense.org>2010-06-07 21:08:11 +0000
commit66a96e72c06a808f75b8c87ef80aea0c0f95d946 (patch)
tree93e2e95a125bd8badb4bdec54b7f79947f8086a9 /usr/local/www/widgets/widgets
parentac7609c2b663693fbbaaba7de2d2a9ab906def07 (diff)
downloadpfsense-66a96e72c06a808f75b8c87ef80aea0c0f95d946.zip
pfsense-66a96e72c06a808f75b8c87ef80aea0c0f95d946.tar.gz
Reorganize code to be able to actually use the lookup_gateway_ip_by_name() function to find even dynamic gateways ip.
Diffstat (limited to 'usr/local/www/widgets/widgets')
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index c2f5645..b8bca28 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -30,7 +30,6 @@ require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
require_once("functions.inc");
-$a_gateways = return_gateways_array();
$gateways_status = array();
$gateways_status = return_gateways_status();
@@ -58,7 +57,7 @@ $counter = 1;
<?php $counter++; ?>
</td>
<td class="listr" align="center" id="gateway<?= $counter; ?>">
- <?=$a_gateways[$gateway['name']]['gateway'];?>
+ <?php echo lookup_gateway_ip_by_name($gateway['name']);?>
<?php $counter++; ?>
</td>
<td class="listr" align="center" id="gateway<?= $counter; ?>">
OpenPOWER on IntegriCloud