From c9a2dea9bc9dfbdd739796bedef450f0c1504d3b Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Mon, 7 Nov 2011 23:29:06 +0000 Subject: [PATCH] ensure we load our database.php even if we have a weird include_path set git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@228 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641 --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 7bfddbf779..e32ad0fa60 100644 --- a/config.php +++ b/config.php @@ -67,7 +67,7 @@ function _debug($string, $up = 0) { die("please run /setup"); } - require_once("database.php"); + require_once(dirname(__FILE__) . '/database.php'); require_once(dirname(__FILE__) . '/website_code/php/database_library.php'); $row = db_query_one("SELECT * FROM {$xerte_toolkits_site->database_table_prefix}sitedetails");