diff options
author | myk%mozilla.org <> | 2002-08-20 10:25:07 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2002-08-20 10:25:07 +0200 |
commit | 26118155d8f712c5f43a735ca2c115154d023489 (patch) | |
tree | 008f18d4c79afa99c6f32b43e243e506f6e67893 /template/en/default/global | |
parent | e7e9e5c5cb454abbf92e1b8e1a4e43bd01f4c79c (diff) | |
download | bugzilla-26118155d8f712c5f43a735ca2c115154d023489.tar.gz bugzilla-26118155d8f712c5f43a735ca2c115154d023489.tar.xz |
Fix for bug 163541: let there be a page title but no primary page header.
2xr=bbaetz
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 7e20de953..6e7da2a16 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -40,12 +40,21 @@ [% END %] [% DEFAULT - h1 = title h2 = "" h3 = "" bgcolor = "#ffffff" onload = "" %] + +[%# We should be able to set the default value of the h1 variable + # to the value of the title variable using the DEFAULT directive, + # but that doesn't work if a caller sets h1 to the empty string + # to avoid h1 inheriting the value of title, since DEFAULT + # mistakenly treats empty strings as undefined and gives h1 the + # value of title anyway. To get around that problem we explicitly + # set h1's default value here only if it is undefined. %] +[% h1 = title IF !h1.defined %] + <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> |