diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-09 22:01:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-09 22:01:42 +0000 |
commit | 20bac50d4a67dc44b2a40f03162a4d0d244448ce (patch) | |
tree | db45dd0186bc2d2a26a1c806539530dfea274345 /install.php | |
parent | 147bb1389a18eca73015390cc46a5fe03abfcb88 (diff) | |
download | brdo-20bac50d4a67dc44b2a40f03162a4d0d244448ce.tar.gz brdo-20bac50d4a67dc44b2a40f03162a4d0d244448ce.tar.bz2 |
#299308 by redndahead, Dave Reid, dropcube, catch, redndahead, and dbabbage: Add POD to installation requirements.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install.php b/install.php index 9ccb90d23..594d1db19 100644 --- a/install.php +++ b/install.php @@ -791,7 +791,7 @@ function install_verify_settings() { global $db_prefix, $databases; // Verify existing settings (if any). - if (!empty($databases)) { + if (!empty($databases) && install_verify_pdo()) { $database = $databases['default']['default']; drupal_static_reset('conf_path'); $settings_file = './' . conf_path(FALSE) . '/settings.php'; @@ -804,6 +804,13 @@ function install_verify_settings() { } /** + * Verify PDO library. + */ +function install_verify_pdo() { + return extension_loaded('pdo'); +} + +/** * Installation task; define a form to configure and rewrite settings.php. * * @param $form_state |