summaryrefslogtreecommitdiff
path: root/includes/database.mysql.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database.mysql.inc')
-rw-r--r--includes/database.mysql.inc11
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc
index 72f3a4c7a..1fab19191 100644
--- a/includes/database.mysql.inc
+++ b/includes/database.mysql.inc
@@ -57,11 +57,6 @@ function db_connect($url) {
// Check if MySQL support is present in PHP
if (!function_exists('mysql_connect')) {
- // Redirect to installer if using default DB credentials
- if ($url['user'] == 'username' && $url['pass'] == 'password') {
- include_once 'includes/install.inc';
- install_goto('install.php');
- }
drupal_maintenance_theme();
drupal_set_title('PHP MySQL support not enabled');
print theme('maintenance_page', '<p>We were unable to use the MySQL database because the MySQL extension for PHP is not installed. Check your <code>PHP.ini</code> to see how you can enable it.</p>
@@ -94,12 +89,6 @@ function db_connect($url) {
// (matched) rows, not the number of affected rows.
$connection = @mysql_connect($url['host'], $url['user'], $url['pass'], TRUE, 2);
if (!$connection) {
- // Redirect to installer if using default DB credentials
- if ($url['user'] == 'username' && $url['pass'] == 'password') {
- include_once 'includes/install.inc';
- install_goto('install.php');
- }
-
// Show error screen otherwise
drupal_maintenance_theme();
drupal_set_header('HTTP/1.1 503 Service Unavailable');