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/interface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/interface.php') diff --git a/plugin/interface.php b/plugin/interface.php index 2f345f9..bda0550 100644 --- a/plugin/interface.php +++ b/plugin/interface.php @@ -2,8 +2,8 @@ # Collectd Interface plugin -require_once $CONFIG['webdir'].'/conf/config.php'; -require_once $CONFIG['webdir'].'/type/GenericIO.class.php'; +require_once 'conf/common.inc.php'; +require_once 'type/GenericIO.class.php'; # LAYOUT # interface/ -- cgit v1.1