From 20bac50d4a67dc44b2a40f03162a4d0d244448ce Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 9 Jan 2010 22:01:42 +0000 Subject: #299308 by redndahead, Dave Reid, dropcube, catch, redndahead, and dbabbage: Add POD to installation requirements. --- install.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'install.php') 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'; @@ -803,6 +803,13 @@ function install_verify_settings() { return FALSE; } +/** + * Verify PDO library. + */ +function install_verify_pdo() { + return extension_loaded('pdo'); +} + /** * Installation task; define a form to configure and rewrite settings.php. * -- cgit v1.2.3