From 1c888304d33a8c1405b8716356ae300fad39521c Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 May 2014 11:15:53 +0200 Subject: type/Default: don't depend on external function GET --- plugin/apache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/apache.php') 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'; # apache[-X]/apache_requests-X.rrd # apache[-X]/apache_scoreboard-X.rrd -$obj = new Type_Default($CONFIG); +$obj = new Type_Default($CONFIG, $_GET); switch ($obj->args['type']) { case 'apache_bytes': @@ -67,7 +67,7 @@ switch ($obj->args['type']) { break; case 'apache_scoreboard': require_once 'type/GenericStacked.class.php'; - $obj = new Type_GenericStacked($CONFIG); + $obj = new Type_GenericStacked($CONFIG, $_GET); $obj->data_sources = array('value'); $obj->order = array( 'open', -- cgit v1.1