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/df.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/df.php') diff --git a/plugin/df.php b/plugin/df.php index 6398249..780ca0c 100644 --- a/plugin/df.php +++ b/plugin/df.php @@ -2,8 +2,8 @@ # Collectd Df 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 # -- cgit v1.1