- Added <base href=""> to default theme. Patch by Al, though I had to add

a 'global $base_url;'.  Fixes bug #1533.
4.2.x
Dries Buytaert 2003-05-07 20:39:27 +00:00
parent c60e3b13fa
commit 9a62873a4b
1 changed files with 3 additions and 0 deletions

View File

@ -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\">";