summaryrefslogtreecommitdiff
path: root/includes/theme.maintenance.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-12 09:22:24 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-12 09:22:24 +0000
commit6cb598ec3c76cb579d20e970c80c5db46261f0b3 (patch)
treedbdb015217e931a4141b723ad945479d971e68c9 /includes/theme.maintenance.inc
parent1c1d12b8741a1aa31d4b41f8655dbfa5fd861f97 (diff)
downloadbrdo-6cb598ec3c76cb579d20e970c80c5db46261f0b3.tar.gz
brdo-6cb598ec3c76cb579d20e970c80c5db46261f0b3.tar.bz2
- Patch #740136 by casey, cosmicdreams: CSS doesn't get included during install.
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r--includes/theme.maintenance.inc43
1 files changed, 2 insertions, 41 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc
index 536db1ee4..e8b470412 100644
--- a/includes/theme.maintenance.inc
+++ b/includes/theme.maintenance.inc
@@ -144,12 +144,6 @@ function theme_install_page($variables) {
// Delay setting the message variable so it can be processed below.
$variables['show_messages'] = FALSE;
- // Variable processors invoked manually since this function and theme_update_page()
- // are exceptions in how it works within the theme system.
- template_preprocess($variables, 'install_page');
- template_preprocess_maintenance_page($variables);
- template_process($variables, 'install_page');
- template_process_maintenance_page($variables);
// Special handling of error messages
$messages = drupal_set_message();
@@ -174,20 +168,7 @@ function theme_install_page($variables) {
$variables['messages'] .= theme('status_messages', array('display' => 'status'));
}
- // This was called as a theme hook (not template), so we need to fix
- // path_to_theme() for the template, to point at the actual theme rather than
- // system module as owner of the hook. Additionally, figure out the
- // maintenance page template to use.
- global $theme_path, $theme_info, $base_theme_info;
- $theme_path = dirname($theme_info->uri);
- $base_themes = $base_theme_info;
- // Make sure a maintenance-page.tpl.php is always found.
- $base_themes[] = 'modules/system';
- while (!file_exists($theme_path . '/maintenance-page.tpl.php') && $base_theme = array_shift($base_themes)) {
- $theme_path = dirname($base_theme->uri);
- }
-
- return theme_render_template($theme_path . '/maintenance-page.tpl.php', $variables);
+ return theme('maintenance_page', $variables);
}
/**
@@ -205,13 +186,6 @@ function theme_update_page($variables) {
// Set required headers.
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
- // Variable processors invoked manually since this function and theme_install_page()
- // are exceptions in how it works within the theme system.
- template_preprocess($variables, 'update_page');
- template_preprocess_maintenance_page($variables);
- template_process($variables, 'update_page');
- template_process_maintenance_page($variables);
-
// Special handling of warning messages.
$messages = drupal_set_message();
if (isset($messages['warning'])) {
@@ -220,20 +194,7 @@ function theme_update_page($variables) {
$variables['messages'] .= theme('status_messages', array('display' => 'warning'));
}
- // This was called as a theme hook (not template), so we need to fix
- // path_to_theme() for the template, to point at the actual theme rather than
- // system module as owner of the hook. Additionally, figure out the
- // maintenance page template to use.
- global $theme_path, $theme_info, $base_theme_info;
- $theme_path = dirname($theme_info->uri);
- $base_themes = $base_theme_info;
- // Make sure a maintenance-page.tpl.php is always found.
- $base_themes[] = 'modules/system';
- while (!file_exists($theme_path . '/maintenance-page.tpl.php') && $base_theme = array_shift($base_themes)) {
- $theme_path = dirname($base_theme->uri);
- }
-
- return theme_render_template($theme_path . '/maintenance-page.tpl.php', $variables);
+ return theme('maintenance_page', $variables);
}
/**