summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-06-05 09:26:42 +0000
committerDries Buytaert <dries@buytaert.net>2007-06-05 09:26:42 +0000
commitb0735a04d7778afb759007ef3e06d147d225f8b3 (patch)
tree2c87179abee4492e6f27cf1b04233cfe064ac66e /install.php
parent2a3744c572ac0e309b422ac087efcd50f40d16c0 (diff)
downloadbrdo-b0735a04d7778afb759007ef3e06d147d225f8b3.tar.gz
brdo-b0735a04d7778afb759007ef3e06d147d225f8b3.tar.bz2
- Patch #147145 by David Strauss: remove mysql (no i) as an option when mysqli is available.
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.php b/install.php
index 2628ed38f..b8b44a765 100644
--- a/install.php
+++ b/install.php
@@ -213,6 +213,12 @@ function install_settings_form(&$form_state, $profile, $install_locale, $setting
$db_host = 'localhost';
}
$db_types = drupal_detect_database_types();
+
+ // If both 'mysql' and 'mysqli' are available, we disable 'mysql':
+ if (isset($db_types['mysqli'])) {
+ unset($db_types['mysql']);
+ }
+
if (count($db_types) == 0) {
$form['no_db_types'] = array(
'#value' => st('Your web server does not appear to support any common database types. Check with your hosting provider to see if they offer any databases that <a href="@drupal-databases">Drupal supports</a>.', array('@drupal-databases' => 'http://drupal.org/node/270#database')),
@@ -226,8 +232,6 @@ function install_settings_form(&$form_state, $profile, $install_locale, $setting
);
if (count($db_types) > 1) {
- // Database type
- $db_types = drupal_detect_database_types();
$form['basic_options']['db_type'] = array(
'#type' => 'radios',
'#title' => st('Database type'),