diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-30 21:32:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-30 21:32:09 +0000 |
commit | 4ffb77baae95c35d4bf5936b86b856da19101bde (patch) | |
tree | 5ff3aabe19449aed6b775404293829468f4a0e19 /includes | |
parent | 8b8a585ab2b76e7993d1d6ed4e2756d88df6036b (diff) | |
download | brdo-4ffb77baae95c35d4bf5936b86b856da19101bde.tar.gz brdo-4ffb77baae95c35d4bf5936b86b856da19101bde.tar.bz2 |
- Patch #13148 by Morbus: further base path fixes / clean-ups.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 1894d2a16..29da91fe3 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('<link rel="shortcut icon" href="misc/favicon.ico" type="image/x-icon" />'); + drupal_set_html_head('<link rel="shortcut icon" href="'. $base_path .'misc/favicon.ico" type="image/x-icon" />'); $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; $output .= '<html xmlns="http://www.w3.org/1999/xhtml">'; $output .= '<head>'; @@ -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. * |