diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-04-25 20:10:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-04-25 20:10:36 +0000 |
commit | 31d8b14969b58769f03eae2ecbf0cb2a1c1152fa (patch) | |
tree | 98b9aa3f915fd02b09e3b3ec96652191b97a8a5d | |
parent | 648f1e00a77c8480afcdf59a1e833d5313604f72 (diff) | |
download | brdo-31d8b14969b58769f03eae2ecbf0cb2a1c1152fa.tar.gz brdo-31d8b14969b58769f03eae2ecbf0cb2a1c1152fa.tar.bz2 |
- A one line patch to theme.inc which adds a missing page title variable to
the header() function. Patch by Moshe.
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 7013c965d..58a4434d4 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -20,7 +20,7 @@ class BaseTheme { function header($title = "") { $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"; - $output .= "<html><head><title>". variable_get(site_name, "drupal") ."</title>"; + $output .= "<html><head><title>". $title ? $title : variable_get(site_name, "drupal") ."</title>"; $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\">"; |