summaryrefslogtreecommitdiff
path: root/includes
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
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')
-rw-r--r--includes/theme.inc5
-rw-r--r--includes/theme.maintenance.inc10
2 files changed, 1 insertions, 14 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 705ba1328..6c32aa8f3 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -2339,8 +2339,7 @@ function theme_get_suggestions($args, $base, $delimiter = '__') {
/**
* The variables array generated here is a mirror of template_preprocess_page().
* This preprocessor will run its course when theme_maintenance_page() is
- * invoked. It is also used in theme_install_page() and theme_update_page() to
- * keep all the variables consistent.
+ * invoked.
*
* An alternate template file of "maintenance-page--offline.tpl.php" can be
* used when the database is offline to hide errors and completely replace the
@@ -2437,8 +2436,6 @@ function template_preprocess_maintenance_page(&$variables) {
/**
* The variables array generated here is a mirror of template_process_html().
* This processor will run its course when theme_maintenance_page() is invoked.
- * It is also used in theme_install_page() and theme_update_page() to keep all
- * the variables consistent.
*
* @see maintenance-page.tpl.php
*/
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);
}