summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-12 02:00:04 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-12 02:00:04 +0000
commit33b09cc5eb6f602e8007ce4cf799b30aacc4021e (patch)
treef0898ff7830c0a1a145e786a95051621a08c59f2 /install.php
parentb959d8fbeb81d033d74abe620d4131a7e533179b (diff)
downloadbrdo-33b09cc5eb6f602e8007ce4cf799b30aacc4021e.tar.gz
brdo-33b09cc5eb6f602e8007ce4cf799b30aacc4021e.tar.bz2
#589754 by rfay and Crell: Fixed non-recoverable install if invalid database specified in settings.php.
Diffstat (limited to 'install.php')
-rw-r--r--install.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/install.php b/install.php
index 83c5099ee..249d40729 100644
--- a/install.php
+++ b/install.php
@@ -954,6 +954,10 @@ function install_database_errors($database, $settings_file) {
// Run tasks associated with the database type. Any errors are caught in the
// calling function
$databases['default']['default'] = $database;
+ // Just changing the global doesn't get the new information processed.
+ // We tell tell the Database class to re-parse $databases.
+ Database::parseConnectionInfo();
+
try {
db_run_tasks($database['driver']);
}