diff options
Diffstat (limited to 'includes/database.inc')
-rw-r--r-- | includes/database.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/database.inc b/includes/database.inc index c76b0083d..fa111b460 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -116,7 +116,11 @@ function db_set_active($name = 'default') { include_once($handler); } else { - die('Unsupported database type'); + drupal_maintenance_theme(); + drupal_set_title('Unsupported database type'); + print theme('maintenance_page', '<p>The database type '. theme('placeholder', $db_type) .' is unsupported. Please use either <var>mysql</var> for MySQL databases or <var>pgsql</var> for PostgreSQL databases. The database information is in your <code>settings.php</code> file.</p> +<p>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.</p>'); + exit; } $db_conns[$name] = db_connect($connect_url); |