summaryrefslogtreecommitdiff
path: root/includes/database.pgsql.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database.pgsql.inc')
-rw-r--r--includes/database.pgsql.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc
index a4b7301d4..f1500c8e8 100644
--- a/includes/database.pgsql.inc
+++ b/includes/database.pgsql.inc
@@ -84,6 +84,7 @@ function db_connect($url) {
$connection = @pg_connect($conn_string);
if (!$connection) {
drupal_maintenance_theme();
+ drupal_set_header('HTTP/1.1 503 Service Unavailable');
drupal_set_title('Unable to connect to database');
print theme('maintenance_page', '<p>If you still have to install Drupal, proceed to the <a href="'. base_path() .'install.php">installation page</a>.</p>
<p>If you have already finished installed Drupal, this either means that the username and password information in your <code>settings.php</code> file is incorrect or that we can\'t connect to the PostgreSQL database server. This could mean your hosting provider\'s database server is down.</p>