summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-05-03 13:38:59 +0200
committerDylan William Hardison <dylan@hardison.net>2017-05-03 13:39:18 +0200
commit318651ceaba13b359b97e383ef25c5761aeddc7e (patch)
tree7c6b43916c1065947b4684c3f1e941796214e072 /template/en/default/global
parent8be2b9a50d3b7bc88b3b40654f95e5269378da8d (diff)
downloadbugzilla-318651ceaba13b359b97e383ef25c5761aeddc7e.tar.gz
bugzilla-318651ceaba13b359b97e383ef25c5761aeddc7e.tar.xz
Bug 1355490 - Short URL link give "The token is not valid" error
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/header.html.tmpl60
1 files changed, 32 insertions, 28 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 215afefd0..5cd0fef79 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -117,38 +117,42 @@
# value of title anyway. To get around that problem we explicitly
# set header's default value here only if it is undefined. %]
[% IF !header.defined %][% header = title %][% END %]
-[%- js_BUGZILLA = {
- param => {
- cookiepath => Param('cookiepath'),
- maxusermatches => Param('maxusermatches'),
- },
- constant => {
- COMMENT_COLS => constants.COMMENT_COLS,
- },
- string => {
- # Please keep these in alphabetical order.
-
- attach_desc_required =>
- 'You must enter a Description for this attachment.',
- component_required =>
- "You must select a Component for this $terms.bug",
- description_required =>
- "You must enter a Description for this $terms.bug",
- short_desc_required =>
- "You must enter a Summary for this $terms.bug",
- version_required =>
- "You must select a Version for this $terms.bug"
- }
- };
- IF generate_api_token;
- js_BUGZILLA.api_token = get_api_token();
- END;
-%]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
- <head data-bugzilla='[% json_encode(js_BUGZILLA) FILTER html %]'>
+ <head>
+ [%- js_BUGZILLA = {
+ param => {
+ cookiepath => Param('cookiepath'),
+ maxusermatches => Param('maxusermatches'),
+ },
+ constant => {
+ COMMENT_COLS => constants.COMMENT_COLS,
+ },
+ string => {
+ # Please keep these in alphabetical order.
+ attach_desc_required =>
+ 'You must enter a Description for this attachment.',
+ component_required =>
+ "You must select a Component for this $terms.bug",
+ description_required =>
+ "You must enter a Description for this $terms.bug",
+ short_desc_required =>
+ "You must enter a Summary for this $terms.bug",
+ version_required =>
+ "You must select a Version for this $terms.bug"
+ }
+ };
+ %]
[% Hook.process("start") %]
+ [%
+ IF generate_api_token;
+ js_BUGZILLA.api_token = get_api_token();
+ END;
+ %]
+
+ <meta name="bugzilla-global" content="dummy"
+ id="bugzilla-global" data-bugzilla="[% json_encode(js_BUGZILLA) FILTER html %]">
<title>[% title %]</title>
[% IF Param('utf8') %]