From f2ce877d43ce72173a8eaaee5ec76640fe2ab6c5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 23 Aug 2007 16:41:19 +0000 Subject: [PATCH] - Patch #145218 by profix898, bennybobw, Crell, forngren et al: use href instead of @import for CSS. --- includes/common.inc | 8 ++++---- includes/menu.inc | 4 ++-- includes/theme.inc | 6 +++--- misc/maintenance.tpl.php | 4 ++-- modules/book/book.module | 5 ++--- themes/garland/page.tpl.php | 2 +- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index 3a9aeeb0349..366c2b96ea1 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1554,15 +1554,15 @@ function drupal_get_css($css = NULL) { // If a CSS file is not to be preprocessed and it's a module CSS file, it needs to *always* appear at the *top*, // regardless of whether preprocessing is on or off. if (!$preprocess && $type == 'module') { - $no_module_preprocess .= '' ."\n"; + $no_module_preprocess .= ''."\n"; } // If a CSS file is not to be preprocessed and it's a theme CSS file, it needs to *always* appear at the *bottom*, // regardless of whether preprocessing is on or off. else if (!$preprocess && $type == 'theme') { - $no_theme_preprocess .= '' ."\n"; + $no_theme_preprocess .= ''."\n"; } else { - $output .= '' ."\n"; + $output .= ''."\n"; } } } @@ -1571,7 +1571,7 @@ function drupal_get_css($css = NULL) { if ($is_writable && $preprocess_css) { $filename = md5(serialize($types)) .'.css'; $preprocess_file = drupal_build_css_cache($types, $filename); - $output .= ''. "\n"; + $output .= ''."\n"; } } diff --git a/includes/menu.inc b/includes/menu.inc index 064b04ef7fc..eafad583191 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -992,13 +992,13 @@ function menu_list_system_menus() { function menu_primary_links() { return menu_navigation_links('primary-links'); } - + /** * Return an array of links to be rendered as the Secondary links. */ function menu_secondary_links() { - // If the secondary menu source is set as the primary menu, we display the + // If the secondary menu source is set as the primary menu, we display the // second level of the primary menu. if (variable_get('menu_secondary_links_source', 'secondary-links') == 'primary-links') { return menu_navigation_links('primary-links', 1); diff --git a/includes/theme.inc b/includes/theme.inc index 4921d3a8d32..715183408fc 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -943,9 +943,9 @@ function theme_placeholder($text) { function theme_maintenance_page($content, $show_messages = TRUE) { // Set required headers. drupal_set_header('Content-Type: text/html; charset=utf-8'); - drupal_set_html_head(''); - drupal_set_html_head(''); - drupal_set_html_head(''); + drupal_set_html_head(''); + drupal_set_html_head(''); + drupal_set_html_head(''); drupal_set_html_head(''); // Prepare variables. diff --git a/misc/maintenance.tpl.php b/misc/maintenance.tpl.php index b04189a2325..bd185604152 100644 --- a/misc/maintenance.tpl.php +++ b/misc/maintenance.tpl.php @@ -8,9 +8,9 @@ - + \n". $title ."\n"; $html .= ''; $html .= ''."\n"; - $html .= "\n"; $html .= "\n\n". $content ."\n\n\n"; return $html; } diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index 9e4c27d7156..bef8aaa9248 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -9,7 +9,7 @@ >