From 23d69b985c50e1afa4b9c2795f0e08e7ea3b83c2 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 27 Dec 2010 14:20:42 -0500 Subject: Use convert_friendly_interface_to_friendly_descr in the wol widget, just like on the main page. Ticket #1103 --- usr/local/www/widgets/widgets/wake_on_lan.widget.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'usr/local') 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 '' . $wolent['descr'] . '
' . $wolent['mac'] . '' . "\n"; - $wolifname = $config['interfaces'][$wolent['interface']]['descr']; - if ( empty( $wolifname ) ){ - $wolifname = strtoupper($wolent['interface']); - } - echo '' . $wolifname . '' . "\n"; + echo '' . convert_friendly_interface_to_friendly_descr($wolent['interface']) . '' . "\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) { -- cgit v1.1