diff options
author | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
commit | 1c888304d33a8c1405b8716356ae300fad39521c (patch) | |
tree | ce0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/apache.php | |
parent | inc: mv graphs_from_plugin, build_url functions to html.inc.php (diff) | |
download | apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.zip apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.gz apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.bz2 apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.xz |
type/Default: don't depend on external function GET
Diffstat (limited to 'plugin/apache.php')
-rw-r--r-- | plugin/apache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/apache.php b/plugin/apache.php index 7e4919a..226385e 100644 --- a/plugin/apache.php +++ b/plugin/apache.php | |||
@@ -13,7 +13,7 @@ require_once 'inc/collectd.inc.php'; | |||
13 | # apache[-X]/apache_requests-X.rrd | 13 | # apache[-X]/apache_requests-X.rrd |
14 | # apache[-X]/apache_scoreboard-X.rrd | 14 | # apache[-X]/apache_scoreboard-X.rrd |
15 | 15 | ||
16 | $obj = new Type_Default($CONFIG); | 16 | $obj = new Type_Default($CONFIG, $_GET); |
17 | 17 | ||
18 | switch ($obj->args['type']) { | 18 | switch ($obj->args['type']) { |
19 | case 'apache_bytes': | 19 | case 'apache_bytes': |
@@ -67,7 +67,7 @@ switch ($obj->args['type']) { | |||
67 | break; | 67 | break; |
68 | case 'apache_scoreboard': | 68 | case 'apache_scoreboard': |
69 | require_once 'type/GenericStacked.class.php'; | 69 | require_once 'type/GenericStacked.class.php'; |
70 | $obj = new Type_GenericStacked($CONFIG); | 70 | $obj = new Type_GenericStacked($CONFIG, $_GET); |
71 | $obj->data_sources = array('value'); | 71 | $obj->data_sources = array('value'); |
72 | $obj->order = array( | 72 | $obj->order = array( |
73 | 'open', | 73 | 'open', |