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/global/confirm-user-match.html.tmpl | 6 ++---- template/en/default/global/hidden-fields.html.tmpl | 11 ++++------- template/en/default/global/product-select.html.tmpl | 4 ++-- template/en/default/global/user-error.html.tmpl | 17 ++++++++--------- 4 files changed, 16 insertions(+), 22 deletions(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/confirm-user-match.html.tmpl b/template/en/default/global/confirm-user-match.html.tmpl index 613f097e1..b497256a3 100644 --- a/template/en/default/global/confirm-user-match.html.tmpl +++ b/template/en/default/global/confirm-user-match.html.tmpl @@ -41,13 +41,11 @@ [% IF matchsuccess == 1 %] [% PROCESS global/header.html.tmpl title="Confirm Match" %] - [% USE Bugzilla %] -
@@ -147,7 +145,7 @@ [% SET exclude_these = ['Bugzilla_login', 'Bugzilla_password'] %] [% FOREACH key IN matches.keys %] - [% exclude_these.push(key) IF Bugzilla.cgi.param(key) == '' %] + [% exclude_these.push(key) IF cgi_param(key) == '' %] [% END %] [% SET exclude = '^' _ exclude_these.join('|') _ '$' %] [% PROCESS "global/hidden-fields.html.tmpl" exclude = exclude %] diff --git a/template/en/default/global/hidden-fields.html.tmpl b/template/en/default/global/hidden-fields.html.tmpl index 88d267354..f8f353233 100644 --- a/template/en/default/global/hidden-fields.html.tmpl +++ b/template/en/default/global/hidden-fields.html.tmpl @@ -16,12 +16,9 @@ [% cgi = Bugzilla.cgi %] [%# Generate hidden form fields for non-excluded fields. %] -[% FOREACH field = cgi.param() %] +[% FOREACH field = cgi.multi_param() %] [% NEXT IF exclude && field.search(exclude) %] - [%# The '.slice(0)' bit is here to force the 'param(field)' to be evaluated - in a list context, so we can avoid extra code checking for single valued or - empty fields %] - [% IF field == "data" && cgi.param("data") %] + [% IF field == "data" && cgi_param("data") %]

We were unable to store the file you uploaded because of incomplete information @@ -30,7 +27,7 @@ remaining missing information above.

- Please re-attach the file [% cgi.param(field) FILTER html %] in + Please re-attach the file [% cgi_param(field) FILTER html %] in the field below:

@@ -38,7 +35,7 @@

[% ELSE %] - [% FOREACH mvalue = cgi.param(field).slice(0) %] + [% FOREACH mvalue = cgi.multi_param(field) %] [% END %] diff --git a/template/en/default/global/product-select.html.tmpl b/template/en/default/global/product-select.html.tmpl index 23a7b3d58..f9e5670ad 100644 --- a/template/en/default/global/product-select.html.tmpl +++ b/template/en/default/global/product-select.html.tmpl @@ -69,7 +69,7 @@ [% FOREACH p = classifications.$c %] [% END %] @@ -81,7 +81,7 @@ [% END %] [% FOREACH p = products %] [% END %] diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 8c0cc8b7a..bd8c54f2d 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -2036,29 +2036,28 @@ Please press Back and try again.

-[%# If a saved search fails, people want the ability to edit or delete it. +[%# If a saved search fails, people want the ability to edit or delete it. # This is the best way of getting information about that possible saved # search from any error call location. %] -[% namedcmd = Bugzilla.cgi.param("namedcmd") %] -[% sharer_id = Bugzilla.cgi.param("sharer_id") %] +[% namedcmd = cgi_param("namedcmd") %] [% IF namedcmd AND error != "missing_query" AND error != "saved_search_used_by_whines" - AND !sharer_id %] -

- Alternatively, you can + AND !cgi_param("sharer_id") %] +

+ Alternatively, you can forget - + [% FOREACH q = Bugzilla.user.queries %] [% IF q.name == namedcmd %] or edit [% END %] [% END %] - + the saved search '[% namedcmd FILTER html %]'.

-[% END %] +[% END %] [% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b