From 4ef46afbf05c52ad3a225e2238529c5f717fe049 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 10 Feb 2014 22:21:47 +0100 Subject: use & instead of & in html --- inc/collectd.inc.php | 4 ++-- inc/html.inc.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'inc') diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index c41a6f5..7269e68 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php @@ -206,11 +206,11 @@ function build_url($base, $items, $s=NULL) { if ($value == 'NULL') continue; - $base .= sprintf('%s%s=%s', $i==0 ? '?' : '&', $key, $value); + $base .= sprintf('%s%s=%s', $i==0 ? '?' : '&', $key, $value); $i++; } if (!isset($items['s'])) - $base .= '&s='.$s; + $base .= '&s='.$s; return $base; } diff --git a/inc/html.inc.php b/inc/html.inc.php index b07be8a..e6c6f6d 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -109,7 +109,7 @@ EOT; function plugin_header($host, $plugin) { global $CONFIG; - return printf("

%s

\n", $CONFIG['weburl'], $host, $plugin, $plugin); + return printf("

%s

\n", $CONFIG['weburl'], $host, $plugin, $plugin); } function plugins_list($host, $selected_plugins = array()) { @@ -130,7 +130,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("
  • %4\$s
  • \n", + printf("
  • %4\$s
  • \n", selected_plugin($plugin, $selected_plugins), $CONFIG['weburl'], $host, @@ -142,7 +142,7 @@ function plugins_list($host, $selected_plugins = array()) { # other plugins foreach($plugins as $plugin) { if (!in_array($plugin, $CONFIG['overview'])) { - printf("
  • %4\$s
  • \n", + printf("
  • %4\$s
  • \n", selected_plugin($plugin, $selected_plugins), $CONFIG['weburl'], $host, -- cgit v1.1