diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-07 20:39:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-07 20:39:27 +0000 |
commit | 9a62873a4beae8fe620dedcf7ca40954e12cc7cb (patch) | |
tree | f5e75990a3f9439ac530349559b6b9b10b041a09 | |
parent | c60e3b13fa62c1a88f8576256a7cb5d0249fc1d8 (diff) | |
download | brdo-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.
-rw-r--r-- | includes/theme.inc | 3 |
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\">"; |