diff options
author | Pim van den Berg | 2012-12-28 20:25:29 +0100 |
---|---|---|
committer | Pim van den Berg | 2012-12-28 20:25:29 +0100 |
commit | 79ac52d54a51acdbd469f2d48890eb11e04ac991 (patch) | |
tree | 2bed6c9c58d6279a0f6da9083107017312d5bfe5 /detail.php | |
parent | don't show plugins the host doesn't have (diff) | |
download | apt-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.php | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 | ||
24 | if (!$plugin) { | 24 | $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); |
25 | $selected_plugins = $CONFIG['overview']; | ||
26 | } | ||
27 | else { | ||
28 | $selected_plugins = array($plugin); | ||
29 | } | ||
30 | 25 | ||
31 | html_start(); | 26 | html_start(); |
32 | 27 | ||
@@ -39,8 +34,7 @@ if(!$plugins) { | |||
39 | return false; | 34 | return false; |
40 | } | 35 | } |
41 | 36 | ||
42 | plugins_list($host, $CONFIG['overview'], $plugins, $selected_plugins); | 37 | plugins_list($host, $selected_plugins); |
43 | |||
44 | 38 | ||
45 | echo '<div class="graphs">'; | 39 | echo '<div class="graphs">'; |
46 | plugin_header($host, $plugin); | 40 | plugin_header($host, $plugin); |