From db5bc6fbd9a568bd3267fecff076da455d5e23f7 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 28 Sep 2009 19:53:38 +0200 Subject: change webdir/weburl and include/require usage - Don't depend on includes from files that are included. - Don't use webdir with includes/requires (also because webdir couldn't be available in some cases). - Use common.inc.php instead of config.php in all plugins to have all configuration settings available. --- plugin/irq.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/irq.php') diff --git a/plugin/irq.php b/plugin/irq.php index 2759c0e..6a05245 100644 --- a/plugin/irq.php +++ b/plugin/irq.php @@ -2,15 +2,15 @@ # Collectd IRQ plugin -require_once $CONFIG['webdir'].'/conf/config.php'; -require_once $CONFIG['webdir'].'/type/GenericStacked.class.php'; +require_once 'conf/common.inc.php'; +require_once 'type/GenericStacked.class.php'; ## LAYOUT # irq/ # irq/irq-XX.rrd # grouped -require_once $CONFIG['webdir'].'/inc/collectd.inc.php'; +require_once 'inc/collectd.inc.php'; $tinstance = collectd_plugindetail($host, $plugin, 'ti'); sort($tinstance); -- cgit v1.1