From 4916343f521337f5979d4716ec8fdeed75cace45 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Mon, 18 Apr 2016 15:15:03 -0400 Subject: Update widget to POST link --- src/usr/local/www/widgets/widgets/services_status.widget.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/widgets/widgets/services_status.widget.php b/src/usr/local/www/widgets/widgets/services_status.widget.php index 7e1d883..a6b065c 100644 --- a/src/usr/local/www/widgets/widgets/services_status.widget.php +++ b/src/usr/local/www/widgets/widgets/services_status.widget.php @@ -78,7 +78,7 @@ for ($idx=1; $idx < $numsvcs; $idx++) { for ($chk = $idx +1, $sfx=2; $chk <$numsvcs; $chk++) { if ($services[$chk]['dispname'] == $name) { $services[$chk]['dispname'] .= '_' . $sfx++; - } + } } } @@ -116,20 +116,23 @@ $skipservices = explode(",", $config['widgets']['servicestatusfilter']); if (count($services) > 0) { uasort($services, "service_dispname_compare"); + foreach ($services as $service) { if ((!$service['dispname']) || (in_array($service['dispname'], $skipservices)) || (!is_service_enabled($service['dispname']))) { continue; } + if (empty($service['description'])) { $service['description'] = get_pkg_descr($service['name']); } + $service_desc = explode(".",$service['description']); ?> - + 0) {