Commit b36ca284 authored by alexpott's avatar alexpott

Issue #1885850 by jenlampton: Remove theme_update_page().

parent c95875b0
......@@ -154,5 +154,6 @@ function authorize_access_allowed() {
}
if (!empty($output)) {
print theme('update_page', array('content' => $output, 'show_messages' => $show_messages));
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('maintenance_page', array('content' => $output, 'show_messages' => $show_messages));
}
......@@ -3214,9 +3214,6 @@ function drupal_common_theme() {
'variables' => array('content' => NULL, 'show_messages' => TRUE),
'template' => 'maintenance-page',
),
'update_page' => array(
'variables' => array('content' => NULL, 'show_messages' => TRUE),
),
'install_page' => array(
'variables' => array('content' => NULL),
),
......
......@@ -159,22 +159,6 @@ function theme_install_page($variables) {
return theme('maintenance_page', $variables);
}
/**
* Returns HTML for the update page.
*
* Note: this function is not themeable.
*
* @param $variables
* An associative array containing:
* - content: The page content to show.
* - show_messages: Whether to output status and error messages.
* FALSE can be useful to postpone the messages to a subsequent page.
*/
function theme_update_page($variables) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
return theme('maintenance_page', $variables);
}
/**
* Returns HTML for a results report of an operation run by authorize.php.
*
......
......@@ -390,7 +390,8 @@ function update_check_requirements($skip_warnings = FALSE) {
drupal_set_title('Requirements problem');
$status_report = theme('status_report', array('requirements' => $requirements));
$status_report .= 'Check the messages and <a href="' . check_url(drupal_requirements_url($severity)) . '">try again</a>.';
print theme('update_page', array('content' => $status_report));
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('maintenance_page', array('content' => $status_report));
exit();
}
}
......@@ -533,6 +534,7 @@ function update_check_requirements($skip_warnings = FALSE) {
$output->send();
}
else {
print theme('update_page', array('content' => $output, 'show_messages' => !$progress_page));
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('maintenance_page', array('content' => $output, 'show_messages' => !$progress_page));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment