summaryrefslogtreecommitdiff
path: root/includes/theme.maintenance.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-07 06:38:10 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-07 06:38:10 +0000
commit0f63b2214ded6ca377b6bf4aa0dff1b0ccf7f950 (patch)
tree4793a9849cff2feb92635bb107972d6bb2e474ef /includes/theme.maintenance.inc
parente16e624c1cd756d64b75be0321824211d9553bea (diff)
downloadbrdo-0f63b2214ded6ca377b6bf4aa0dff1b0ccf7f950.tar.gz
brdo-0f63b2214ded6ca377b6bf4aa0dff1b0ccf7f950.tar.bz2
- Patch #807396 by David_Rothstein: remove old error handling from theme_update_page().
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r--includes/theme.maintenance.inc10
1 files changed, 0 insertions, 10 deletions
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'] .= '<h4>' . $title . ':</h4>';
- $variables['messages'] .= theme('status_messages', array('display' => 'warning'));
- }
-
return theme('maintenance_page', $variables);
}