summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-07 20:39:27 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-07 20:39:27 +0000
commit9a62873a4beae8fe620dedcf7ca40954e12cc7cb (patch)
treef5e75990a3f9439ac530349559b6b9b10b041a09 /includes
parentc60e3b13fa62c1a88f8576256a7cb5d0249fc1d8 (diff)
downloadbrdo-9a62873a4beae8fe620dedcf7ca40954e12cc7cb.tar.gz
brdo-9a62873a4beae8fe620dedcf7ca40954e12cc7cb.tar.bz2
- Added <base href=""> to default theme. Patch by Al, though I had to add
a 'global $base_url;'. Fixes bug #1533.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 58a4434d4..fc2ce1a68 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -19,8 +19,11 @@ class BaseTheme {
}
function header($title = "") {
+ global $base_url;
+
$output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n";
$output .= "<html><head><title>". $title ? $title : variable_get(site_name, "drupal") ."</title>";
+ $output .= "<base href=\"$base_url/\" />";
$output .= theme_head($main);
$output .= "</head><body bgcolor=\"$this->background\" text=\"$this->foreground". theme_onload_attribute(). "\">";
$output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td valign=\"top\" width=\"170\">";