summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-12-27 14:20:42 -0500
committerjim-p <jimp@pfsense.org>2010-12-27 14:22:03 -0500
commit23d69b985c50e1afa4b9c2795f0e08e7ea3b83c2 (patch)
treeeccea34d40ca58b032321a828b45a7029ce86313 /usr/local
parente18278d18eff55aa8132f74b2324bee257da852d (diff)
downloadpfsense-23d69b985c50e1afa4b9c2795f0e08e7ea3b83c2.zip
pfsense-23d69b985c50e1afa4b9c2795f0e08e7ea3b83c2.tar.gz
Use convert_friendly_interface_to_friendly_descr in the wol widget, just like on the main page. Ticket #1103
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/widgets/widgets/wake_on_lan.widget.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/usr/local/www/widgets/widgets/wake_on_lan.widget.php
index 2d9851b..e25ab53 100644
--- a/usr/local/www/widgets/widgets/wake_on_lan.widget.php
+++ b/usr/local/www/widgets/widgets/wake_on_lan.widget.php
@@ -47,11 +47,7 @@ else
if (count($wolcomputers) > 0) {
foreach($wolcomputers as $wolent) {
echo '<tr><td class="listlr">' . $wolent['descr'] . '<br />' . $wolent['mac'] . '</td>' . "\n";
- $wolifname = $config['interfaces'][$wolent['interface']]['descr'];
- if ( empty( $wolifname ) ){
- $wolifname = strtoupper($wolent['interface']);
- }
- echo '<td class="listr">' . $wolifname . '</td>' . "\n";
+ echo '<td class="listr">' . convert_friendly_interface_to_friendly_descr($wolent['interface']) . '</td>' . "\n";
$is_active = exec("/usr/sbin/arp -an |/usr/bin/grep {$wolent['mac']}| /usr/bin/wc -l|/usr/bin/awk '{print $1;}'");
if($is_active == 1) {
OpenPOWER on IntegriCloud