From a40d927bfd9a9b3012be9e0f85da84aa4dd58344 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Fri, 20 Dec 2002 15:21:24 +0000 Subject: Bug 173622 - Move template handling into a module. r=justdave, joel, a=justdave --- .../en/default/bug/create/create-guided.html.tmpl | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'template/en/default/bug/create/create-guided.html.tmpl') diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 48a00e609..a4cdff9e5 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -23,7 +23,10 @@ [%# INTERFACE: # This template has the same interface as create.html.tmpl #%] - + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + [% PROCESS global/header.html.tmpl title = "Enter A Bug" onload = "PutDescription()" @@ -62,7 +65,7 @@ function PutDescription() { [%# Browser sniff to try and reduce the incidence of 4.x and NS 6/7 bugs %] -[% IF user_agent.search("Mozilla/4") AND NOT user_agent.search("compatible") %] +[% IF cgi.user_agent("Mozilla/4") AND NOT cgi.user_agent("compatible") %]
@@ -79,7 +82,8 @@ function PutDescription() {
[% END %] -[% IF (matches = user_agent.match('Netscape(\d)')) %] +[% IF cgi.user_agent('Netscape(\d)') %] + [% matches = cgi.user_agent().match('Netscape(\d)') %]
@@ -123,9 +127,9 @@ function PutDescription() {

[%# Stop NS 4.x and all v.3 browsers from getting