diff --git a/includes/theme.inc b/includes/theme.inc index 1894d2a168c..29da91fe350 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -308,19 +308,19 @@ function theme_get_setting($setting_name, $refresh = FALSE) { } if ($settings['toggle_favicon']) { + $settings['favicon'] = $base_path; if ($settings['default_favicon']) { if (file_exists($favicon = dirname($theme_object->filename) .'/favicon.ico')) { - $settings['favicon'] = $favicon; + $settings['favicon'] .= $favicon; } else { - $settings['favicon'] = 'misc/favicon.ico'; + $settings['favicon'] .= 'misc/favicon.ico'; } } elseif ($settings['favicon_path']) { - $settings['favicon'] = $settings['favicon_path']; + $settings['favicon'] .= $settings['favicon_path']; } } - } return isset($settings[$setting_name]) ? $settings[$setting_name] : NULL; @@ -427,9 +427,10 @@ function theme_page($content) { } function theme_maintenance_page($content) { + global $base_path; drupal_set_header('Content-Type: text/html; charset=utf-8'); theme('add_style', 'misc/maintenance.css'); - drupal_set_html_head(''); + drupal_set_html_head(''); $output = "\n"; $output .= ''; $output .= ''; @@ -634,7 +635,6 @@ function theme_form_element($title, $value, $description = NULL, $id = NULL, $re return $output; } - /** * Return a themed submenu, typically displayed under the tabs. * diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index bd6d865c640..917c63ec8de 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -22,6 +22,7 @@ function chameleon_regions() { } function chameleon_page($content) { + global $base_path; $language = $GLOBALS['locale']; if (theme_get_setting('toggle_favicon')) { @@ -35,14 +36,14 @@ function chameleon_page($content) { $output .= "\n"; $output .= " ". ($title ? strip_tags($title) ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")) ."\n"; $output .= drupal_get_html_head(); - $output .= " \n"; + theme('add_style', 'themes/chameleon/common.css'); $output .= theme_get_styles(); $output .= ""; $output .= "\n"; $output .= "
"; if ($logo = theme_get_setting('logo')) { - $output .= " \"Home\""; + $output .= " \"Home\""; } if (theme_get_setting('toggle_name')) { $output .= "

". l(variable_get('site_name', 'drupal'), ""). "

";