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 --- template/en/default/account/auth/login.html.tmpl | 2 +- template/en/default/attachment/midair.html.tmpl | 8 ++------ .../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 ++----- template/en/default/bug/process/header.html.tmpl | 6 ++---- template/en/default/bug/process/midair.html.tmpl | 20 ++++++++------------ .../bug/process/verify-new-product.html.tmpl | 13 ++++++++----- template/en/default/bug/show.xml.tmpl | 5 ++--- .../en/default/global/confirm-user-match.html.tmpl | 6 ++---- template/en/default/global/hidden-fields.html.tmpl | 11 ++++------- .../en/default/global/product-select.html.tmpl | 4 ++-- template/en/default/global/user-error.html.tmpl | 17 ++++++++--------- template/en/default/list/list.html.tmpl | 6 +++--- template/en/default/pages/linked.html.tmpl | 6 ++---- template/en/default/reports/keywords.html.tmpl | 4 ++-- template/en/default/request/queue.html.tmpl | 18 ++++++++---------- 17 files changed, 69 insertions(+), 91 deletions(-) (limited to 'template/en') diff --git a/template/en/default/account/auth/login.html.tmpl b/template/en/default/account/auth/login.html.tmpl index 05d177d09..afa77df7f 100644 --- a/template/en/default/account/auth/login.html.tmpl +++ b/template/en/default/account/auth/login.html.tmpl @@ -25,7 +25,7 @@
+ method="POST" [% IF cgi_param("data") %] enctype="multipart/form-data"[% END %]> [%# 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 %] diff --git a/template/en/default/bug/process/header.html.tmpl b/template/en/default/bug/process/header.html.tmpl index 55de0c324..b95e1dcd3 100644 --- a/template/en/default/bug/process/header.html.tmpl +++ b/template/en/default/bug/process/header.html.tmpl @@ -10,13 +10,11 @@ # As global/header.html.tmpl. #%] -[% USE Bugzilla %] - [% PROCESS "bug/show-header.html.tmpl" %] -[% IF title_tag == "bug_processed" %] +[% IF title_tag == "bug_processed" %] [% title = BLOCK %] - [% IF Bugzilla.cgi.param('id') %] + [% IF cgi_param('id') %] [%+ id FILTER html %] [% ELSE %] [% terms.Bugs %] diff --git a/template/en/default/bug/process/midair.html.tmpl b/template/en/default/bug/process/midair.html.tmpl index f89590df2..ca7e095c1 100644 --- a/template/en/default/bug/process/midair.html.tmpl +++ b/template/en/default/bug/process/midair.html.tmpl @@ -15,10 +15,6 @@ # bug: Bugzilla::Bug; the bug being changed. #%] -[%# The global Bugzilla->cgi object is used to obtain form variable values. %] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - [% UNLESS header_done %] [% PROCESS bug/process/header.html.tmpl %] [% END %] @@ -45,11 +41,11 @@

[% END %] -[% IF cgi.param("comment") %] +[% IF cgi_param("comment") %]

Your comment was:

-    [% cgi.param("comment") FILTER html %]
+    [% cgi_param("comment") FILTER html %]
   

[% END %] @@ -70,16 +66,16 @@ You have the following choices: [% ", except for the added comment(s)" IF comments.size %]. - [% IF cgi.param("comment") %] + [% IF cgi_param("comment") %]
  • - + - - + + - + value="[% cgi_param("comment_is_private") FILTER html %]"> +
  • diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl index c562bf54d..837a9836f 100644 --- a/template/en/default/bug/process/verify-new-product.html.tmpl +++ b/template/en/default/bug/process/verify-new-product.html.tmpl @@ -17,6 +17,9 @@ # verify_bug_groups: If groups need to be confirmed in addition to fields. #%] +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + [% PROCESS global/header.html.tmpl title = 'Verify New Product Details...' style_urls = ['skins/standard/buglist.css'] @@ -165,14 +168,14 @@
    diff --git a/template/en/default/attachment/midair.html.tmpl b/template/en/default/attachment/midair.html.tmpl index 68db5d974..4dd44ef4d 100644 --- a/template/en/default/attachment/midair.html.tmpl +++ b/template/en/default/attachment/midair.html.tmpl @@ -14,10 +14,6 @@ # attachment: object; the attachment being changed. #%] -[%# The global Bugzilla->cgi object is used to obtain form variable values. %] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - [% PROCESS global/header.html.tmpl title = "Mid-air collision!" %]

    Mid-air collision detected!

    @@ -33,11 +29,11 @@ [% PROCESS "bug/activity/table.html.tmpl" incomplete_data=0 %]

    -[% IF cgi.param("comment") %] +[% IF cgi_param("comment") %]

    Your comment was:

    -    [% cgi.param("comment") FILTER html %]
    +    [% cgi_param("comment") FILTER html %]
       

    [% END %] 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() {
    @@ -189,7 +192,7 @@ name="groups" [% ' checked="checked"' IF ((group.membercontrol == constants.CONTROLMAPDEFAULT && user.in_group(group.group.name)) || (group.othercontrol == constants.CONTROLMAPDEFAULT && !user.in_group(group.group.name)) - || cgi.param("groups").contains(group.group.name)) %] + || cgi.multi_param("groups").contains(group.group.name)) %] value="[% group.group.name FILTER html %]">