contrib/collection3: Update `json.cgi' to use the new config parsing function.
authorFlorian Forster <octo@huhu.verplant.org>
Mon, 28 Jul 2008 09:05:39 +0000 (11:05 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 28 Jul 2008 09:05:39 +0000 (11:05 +0200)
contrib/collection3/bin/json.cgi

index 0dceb62..c2af61c 100755 (executable)
@@ -27,13 +27,14 @@ use URI::Escape ('uri_escape');
 
 use Data::Dumper;
 
-use Collectd::Graph::TypeLoader (qw(tl_read_config tl_load_type));
+use Collectd::Graph::Config (qw(gc_read_config));
+use Collectd::Graph::TypeLoader (qw(tl_load_type));
 use Collectd::Graph::Common (qw(get_all_hosts get_files_for_host type_to_module_name));
 use Collectd::Graph::Type ();
 
 our $Debug = param ('debug') ? 1 : 0;
 
-tl_read_config ("$RealBin/../etc/collection3.conf");
+gc_read_config ("$RealBin/../etc/collection.conf");
 
 if ($Debug)
 {