Issue #1885850 by jenlampton: Remove theme_update_page().
parent
c95875b0ae
commit
b36ca2848e
|
@ -154,5 +154,6 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($output)) {
|
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),
|
'variables' => array('content' => NULL, 'show_messages' => TRUE),
|
||||||
'template' => 'maintenance-page',
|
'template' => 'maintenance-page',
|
||||||
),
|
),
|
||||||
'update_page' => array(
|
|
||||||
'variables' => array('content' => NULL, 'show_messages' => TRUE),
|
|
||||||
),
|
|
||||||
'install_page' => array(
|
'install_page' => array(
|
||||||
'variables' => array('content' => NULL),
|
'variables' => array('content' => NULL),
|
||||||
),
|
),
|
||||||
|
|
|
@ -159,22 +159,6 @@ function theme_install_page($variables) {
|
||||||
return theme('maintenance_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.
|
* 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');
|
drupal_set_title('Requirements problem');
|
||||||
$status_report = theme('status_report', array('requirements' => $requirements));
|
$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>.';
|
$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();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -533,6 +534,7 @@ if (isset($output) && $output) {
|
||||||
$output->send();
|
$output->send();
|
||||||
}
|
}
|
||||||
else {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue