diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-16 10:47:17 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-16 10:47:17 +0000 |
commit | 3a934722e5e95a95960e7c733b76d3366e21b5f4 (patch) | |
tree | 0e2be8523ff9b6e8b73d592112774e3ff27d2304 /includes/theme.maintenance.inc | |
parent | 44d71e1eef98b441ba93c4d60c709c1b56868d43 (diff) | |
download | brdo-3a934722e5e95a95960e7c733b76d3366e21b5f4.tar.gz brdo-3a934722e5e95a95960e7c733b76d3366e21b5f4.tar.bz2 |
#196630 follow up by JirkaRybka: fix theme location information in maintenance theming, so IE6 fix CSS is loaded properly
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r-- | includes/theme.maintenance.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 0b9b9fdbb..b4cc24940 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -139,6 +139,12 @@ function theme_install_page($content) { $variables['messages'] .= theme('status_messages', '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. + global $theme_path; + $theme_path = 'themes/garland'; + return theme_render_template('themes/garland/maintenance-page.tpl.php', $variables); } @@ -171,6 +177,12 @@ function theme_update_page($content, $show_messages = TRUE) { $variables['messages'] .= theme('status_messages', '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. + global $theme_path; + $theme_path = 'themes/garland'; + return theme_render_template('themes/garland/maintenance-page.tpl.php', $variables); } |