summaryrefslogtreecommitdiff
path: root/includes/database/database.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database/database.inc')
-rw-r--r--includes/database/database.inc5
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');
}
}