diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-20 20:22:25 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-20 20:22:25 +0000 |
commit | a3bb66e4e81817737ce02ce8f3d0cff5c32fdae9 (patch) | |
tree | e31979e262ad7731f7355c494ac722d474e74080 /includes/database | |
parent | 9c2e5a52c9762dacb97789226c2ee4065d1e18e9 (diff) | |
download | brdo-a3bb66e4e81817737ce02ce8f3d0cff5c32fdae9.tar.gz brdo-a3bb66e4e81817737ce02ce8f3d0cff5c32fdae9.tar.bz2 |
#259623 by dopry and Damien Tournoud: Convert includes/requires to use absolute paths.
Diffstat (limited to 'includes/database')
-rw-r--r-- | includes/database/database.inc | 5 |
1 files changed, 2 insertions, 3 deletions
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'); } } |