From a3bb66e4e81817737ce02ce8f3d0cff5c32fdae9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Sep 2008 20:22:25 +0000 Subject: #259623 by dopry and Damien Tournoud: Convert includes/requires to use absolute paths. --- includes/database/database.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'includes/database') diff --git a/includes/database/database.inc b/includes/database/database.inc index 0369b34b0..49402d02b 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -825,8 +825,7 @@ abstract class Database { // We cannot rely on the registry yet, because the registry requires // an open database connection. $driver_class = 'DatabaseConnection_' . $driver; - $driver_file = './includes/database/' . $driver . '/database.inc'; - require_once($driver_file); + require_once DRUPAL_ROOT . '/includes/database/' . $driver . '/database.inc'; self::$connections[$key][$target] = new $driver_class(self::$databaseInfo[$key][$target]); // We need to pass around the simpletest database prefix in the request @@ -1809,7 +1808,7 @@ function db_result(DatabaseStatement $statement) { function _db_need_install() { if (!function_exists('install_goto')) { - include_once 'includes/install.inc'; + include_once DRUPAL_ROOT . '/includes/install.inc'; install_goto('install.php'); } } -- cgit v1.2.3