Mercurial > defr > drupal > core
comparison includes/database.inc @ 13:8b6c45761e01 6.6
Drupal 6.6
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:32:33 +0100 |
| parents | fff6d4c8c043 |
| children |
comparison
equal
deleted
inserted
replaced
| 12:4ca9f57cc4d4 | 13:8b6c45761e01 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: database.inc,v 1.92.2.2 2008/07/09 21:48:28 goba Exp $ | 2 // $Id: database.inc,v 1.92.2.3 2008/10/20 09:13:04 goba Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * @file | 5 * @file |
| 6 * Wrapper for database interface code. | 6 * Wrapper for database interface code. |
| 7 */ | 7 */ |
| 170 * @param $error | 170 * @param $error |
| 171 * The error message to be appended if 'display_errors' is on. | 171 * The error message to be appended if 'display_errors' is on. |
| 172 */ | 172 */ |
| 173 function _db_error_page($error = '') { | 173 function _db_error_page($error = '') { |
| 174 global $db_type; | 174 global $db_type; |
| 175 drupal_init_language(); | |
| 175 drupal_maintenance_theme(); | 176 drupal_maintenance_theme(); |
| 176 drupal_set_header('HTTP/1.1 503 Service Unavailable'); | 177 drupal_set_header('HTTP/1.1 503 Service Unavailable'); |
| 177 drupal_set_title('Site off-line'); | 178 drupal_set_title('Site off-line'); |
| 178 | 179 |
| 179 $message = '<p>The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.</p>'; | 180 $message = '<p>The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.</p>'; |
