From 0999d9ece348c3593ec717be1074a5833ec9f779 Mon Sep 17 00:00:00 2001
From: François LASSERRE
Date: Wed, 23 Jul 2014 15:00:21 +0200
Subject: Update html.inc.php
Fix a link when no class selected.---
inc/html.inc.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
(limited to 'inc/html.inc.php')
diff --git a/inc/html.inc.php b/inc/html.inc.php
index b8d2f82..9107269 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -128,7 +128,7 @@ function plugins_list($host, $selected_plugins = array()) {
echo '
Plugins
';
echo '';
- printf("- overview
\n",
+ printf("- overview
\n",
selected_overview($selected_plugins),
htmlentities($CONFIG['weburl']),
urlencode($host)
@@ -137,7 +137,7 @@ function plugins_list($host, $selected_plugins = array()) {
# first the ones defined as ordered
foreach($CONFIG['overview'] as $plugin) {
if (in_array($plugin, $plugins)) {
- printf("- %s
\n",
+ printf("- %s
\n",
selected_plugin($plugin, $selected_plugins),
htmlentities($CONFIG['weburl']),
urlencode($host),
@@ -150,7 +150,7 @@ function plugins_list($host, $selected_plugins = array()) {
# other plugins
foreach($plugins as $plugin) {
if (!in_array($plugin, $CONFIG['overview'])) {
- printf("- %s
\n",
+ printf("- %s
\n",
selected_plugin($plugin, $selected_plugins),
htmlentities($CONFIG['weburl']),
urlencode($host),
@@ -166,21 +166,21 @@ function plugins_list($host, $selected_plugins = array()) {
function selected_overview($selected_plugins) {
if (count($selected_plugins) > 1) {
- return 'class="selected"';
+ return 'class="selected" ';
}
return '';
}
function selected_plugin($plugin, $selected_plugins) {
if (in_array($plugin, $selected_plugins)) {
- return 'class="selected"';
+ return 'class="selected" ';
}
return '';
}
function selected_timerange($value1, $value2) {
if ($value1 == $value2) {
- return 'class="selected"';
+ return 'class="selected" ';
}
return '';
}
--
cgit v1.1