aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/detail.php
diff options
context:
space:
mode:
authorPim van den Berg2012-12-28 20:25:29 +0100
committerPim van den Berg2012-12-28 20:25:29 +0100
commit79ac52d54a51acdbd469f2d48890eb11e04ac991 (patch)
tree2bed6c9c58d6279a0f6da9083107017312d5bfe5 /detail.php
parentdon't show plugins the host doesn't have (diff)
downloadapt-panopticon_cgp-79ac52d54a51acdbd469f2d48890eb11e04ac991.zip
apt-panopticon_cgp-79ac52d54a51acdbd469f2d48890eb11e04ac991.tar.gz
apt-panopticon_cgp-79ac52d54a51acdbd469f2d48890eb11e04ac991.tar.bz2
apt-panopticon_cgp-79ac52d54a51acdbd469f2d48890eb11e04ac991.tar.xz
remove arguments overview_plugins and other_plugins from plugins_list function
Those can be gathered within the function.
Diffstat (limited to '')
-rw-r--r--detail.php10
1 files changed, 2 insertions, 8 deletions
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');
21$heigth = GET('y'); 21$heigth = GET('y');
22$seconds = GET('s'); 22$seconds = GET('s');
23 23
24if (!$plugin) { 24$selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin);
25 $selected_plugins = $CONFIG['overview'];
26}
27else {
28 $selected_plugins = array($plugin);
29}
30 25
31html_start(); 26html_start();
32 27
@@ -39,8 +34,7 @@ if(!$plugins) {
39 return false; 34 return false;
40} 35}
41 36
42plugins_list($host, $CONFIG['overview'], $plugins, $selected_plugins); 37plugins_list($host, $selected_plugins);
43
44 38
45echo '<div class="graphs">'; 39echo '<div class="graphs">';
46plugin_header($host, $plugin); 40plugin_header($host, $plugin);