From afeb2d971cd02f186ef54be7b799ac433aeba625 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Tue, 20 Aug 2002 01:25:07 +0000 Subject: [PATCH] Fix for bug 163541: let there be a page title but no primary page header. 2xr=bbaetz git-svn-id: svn://10.0.0.236/trunk@127672 18797224-902f-48f8-a5cc-f745e15eee43 --- .../template/en/default/global/header.html.tmpl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl index 7e20de9535a..6e7da2a168b 100644 --- a/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl +++ b/mozilla/webtools/bugzilla/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 %] +