From 0cac6939b770e4685f368bd87beb5fd01120218b Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 25 Oct 2005 03:43:57 +0000 Subject: - Fix usage of header() to drupal_set_header() - Emit charset for blogapi RSD --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 7eb689261..8a47e3671 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -257,7 +257,7 @@ function drupal_goto($path = '', $query = NULL, $fragment = NULL) { * Generates a site offline message */ function drupal_site_offline() { - header('HTTP/1.0 503 Service unavailable'); + drupal_set_header('HTTP/1.0 503 Service unavailable'); drupal_set_title(t('Site offline')); print theme('maintenance_page', variable_get('site_offline_message', t('%site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('%site' => variable_get('site_name', t('This drupal site')))))); @@ -267,7 +267,7 @@ function drupal_site_offline() { * Generates a 404 error if the request can not be handled. */ function drupal_not_found() { - header('HTTP/1.0 404 Not Found'); + drupal_set_header('HTTP/1.0 404 Not Found'); watchdog('page not found', t('%page not found.', array('%page' => theme('placeholder', $_GET['q']))), WATCHDOG_WARNING); $path = drupal_get_normal_path(variable_get('site_404', '')); @@ -287,7 +287,7 @@ function drupal_not_found() { * Generates a 403 error if the request is not allowed. */ function drupal_access_denied() { - header('HTTP/1.0 403 Forbidden'); + drupal_set_header('HTTP/1.0 403 Forbidden'); watchdog('access denied', t('%page denied access.', array('%page' => theme('placeholder', $_GET['q']))), WATCHDOG_WARNING, l(t('view'), $_GET['q'])); $path = drupal_get_normal_path(variable_get('site_403', '')); -- cgit v1.2.3