From 0f63b2214ded6ca377b6bf4aa0dff1b0ccf7f950 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 7 Jun 2010 06:38:10 +0000 Subject: - Patch #807396 by David_Rothstein: remove old error handling from theme_update_page(). --- includes/theme.maintenance.inc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'includes/theme.maintenance.inc') diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 798a02993..5d1a9b9c7 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -156,17 +156,7 @@ function theme_install_page($variables) { * FALSE can be useful to postpone the messages to a subsequent page. */ function theme_update_page($variables) { - // Set required headers. drupal_add_http_header('Content-Type', 'text/html; charset=utf-8'); - - // Special handling of warning messages. - $messages = drupal_set_message(); - if (isset($messages['warning'])) { - $title = count($messages['warning']) > 1 ? 'The following update warnings should be carefully reviewed before continuing' : 'The following update warning should be carefully reviewed before continuing'; - $variables['messages'] .= '

' . $title . ':

'; - $variables['messages'] .= theme('status_messages', array('display' => 'warning')); - } - return theme('maintenance_page', $variables); } -- cgit v1.2.3