From 79ac52d54a51acdbd469f2d48890eb11e04ac991 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 28 Dec 2012 20:25:29 +0100 Subject: remove arguments overview_plugins and other_plugins from plugins_list function Those can be gathered within the function. --- detail.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'detail.php') diff --git a/detail.php b/detail.php index b824d1d..fdeb777 100644 --- a/detail.php +++ b/detail.php @@ -21,12 +21,7 @@ $width = GET('x'); $heigth = GET('y'); $seconds = GET('s'); -if (!$plugin) { - $selected_plugins = $CONFIG['overview']; -} -else { - $selected_plugins = array($plugin); -} +$selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); html_start(); @@ -39,8 +34,7 @@ if(!$plugins) { return false; } -plugins_list($host, $CONFIG['overview'], $plugins, $selected_plugins); - +plugins_list($host, $selected_plugins); echo '
'; plugin_header($host, $plugin); -- cgit v1.1