~ubuntu-branches/ubuntu/karmic/drupal5/karmic

« back to all changes in this revision

Viewing changes to includes/database.pgsql.inc

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Lesicnik
  • Date: 2008-12-02 11:31:44 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081202113144-24pidtd729n4esjq
Tags: 5.12-2ubuntu1
* Merge from debian unstable, remaining changes: (LP: #304334)
 + debian/patches/02_htaccess:
  - Add RewriteBase /drupal5
 + debian/control:
  - Replace exim4 with postfix in Depends.
 - Fix for debian/watch.
  - add Homepage field.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: database.pgsql.inc,v 1.43.2.2 2008/07/16 19:12:52 drumm Exp $
 
2
// $Id: database.pgsql.inc,v 1.43.2.3 2008/09/15 06:14:52 drumm Exp $
3
3
 
4
4
/**
5
5
 * @file
54
54
   // Check if MySQL support is present in PHP
55
55
  if (!function_exists('pg_connect')) {
56
56
    drupal_maintenance_theme();
 
57
    drupal_set_header('HTTP/1.1 503 Service Unavailable');
57
58
    drupal_set_title('PHP PostgreSQL support not enabled');
58
59
    print theme('maintenance_page', '<p>We were unable to use the PostgreSQL database because the PostgreSQL extension for PHP is not installed. Check your <code>PHP.ini</code> to see how you can enable it.</p>
59
60
<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>');