From 90d86a9744883ccc120a0a955ffade72990e1505 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 14 Apr 2016 21:03:00 +0200 Subject: Bug 1088022 - Bump min version to CGI 4.09 r=dkl --- .../en/default/bug/create/comment-guided.txt.tmpl | 22 +++++++++++----------- template/en/default/bug/create/comment.txt.tmpl | 5 ++--- .../en/default/bug/create/create-guided.html.tmpl | 7 ++----- 3 files changed, 15 insertions(+), 19 deletions(-) (limited to 'template/en/default/bug/create') diff --git a/template/en/default/bug/create/comment-guided.txt.tmpl b/template/en/default/bug/create/comment-guided.txt.tmpl index e85a36469..0a7b5223a 100644 --- a/template/en/default/bug/create/comment-guided.txt.tmpl +++ b/template/en/default/bug/create/comment-guided.txt.tmpl @@ -8,27 +8,27 @@ [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] User-Agent: [%+ cgi.user_agent() %] -Build Identifier: [%+ cgi.param("buildid") %] +Build Identifier: [%+ cgi_param("buildid") %] -[%+ cgi.param("comment") IF cgi.param("comment") %] +[%+ cgi_param("comment") IF cgi_param("comment") %] -[%+ IF cgi.param("reproducible") != "Choose one..." -%] -Reproducible: [%+ cgi.param("reproducible") %] +[%+ IF cgi_param("reproducible") != "Choose one..." -%] +Reproducible: [%+ cgi_param("reproducible") %] [% END %] -[% IF !(cgi.param("reproduce_steps").match('^1\.\s*2\.\s*3\.\s*$') || cgi.param("reproduce_steps").match('^\s*$')) %] +[% IF !(cgi_param("reproduce_steps").match('^1\.\s*2\.\s*3\.\s*$') || cgi_param("reproduce_steps").match('^\s*$')) %] Steps to Reproduce: -[%+ cgi.param("reproduce_steps") %] +[%+ cgi_param("reproduce_steps") %] [% END %] -[% IF cgi.param("actual_results") -%] +[% IF cgi_param("actual_results") -%] Actual Results: -[%+ cgi.param("actual_results") %] +[%+ cgi_param("actual_results") %] [% END %] -[% IF cgi.param("expected_results") %] +[% IF cgi_param("expected_results") %] Expected Results: -[%+ cgi.param("expected_results") %] +[%+ cgi_param("expected_results") %] [% END %] -[%+ cgi.param("additional_info") %] +[%+ cgi_param("additional_info") %] diff --git a/template/en/default/bug/create/comment.txt.tmpl b/template/en/default/bug/create/comment.txt.tmpl index 4cd78ddd1..8eb6bfaf0 100644 --- a/template/en/default/bug/create/comment.txt.tmpl +++ b/template/en/default/bug/create/comment.txt.tmpl @@ -5,8 +5,7 @@ # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] -[% USE Bugzilla %] -[% Hook.process("form") %] +[% Hook.process("form") %] -[% Bugzilla.cgi.param("comment") %] +[% cgi_param("comment") %] diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 1adae4588..0169d9e6b 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -10,9 +10,6 @@ # This template has the same interface as create.html.tmpl #%] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - [% PROCESS global/header.html.tmpl title = "Enter $terms.ABug" onload = "PutDescription()" @@ -165,8 +162,8 @@ function PutDescription() { [%# Accept URL parameter build ID for non-browser products %] - [% IF cgi.param("buildid") %] - [% buildid = cgi.param("buildid") %] + [% IF cgi_param("buildid") %] + [% buildid = cgi_param("buildid") %] [% END %] -- cgit v1.2.3-24-g4f1b