diff options
author | Byron Jones <glob@mozilla.com> | 2015-03-10 06:13:49 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-03-10 06:13:49 +0100 |
commit | 887524670413292b71448bd0c67ab2b786c78b49 (patch) | |
tree | 794e276bdc45f081b681357069d61e8aa05be464 /template/en/default/global | |
parent | ef96ae157223b3309f7703798b32b0b386b2edff (diff) | |
download | bugzilla-887524670413292b71448bd0c67ab2b786c78b49.tar.gz bugzilla-887524670413292b71448bd0c67ab2b786c78b49.tar.xz |
Bug 1139749: backport bug 1128853 to bmo (Bugzilla shouldn't try to write API tokens into the shadow DB)
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 3151a96dd..5528a96c2 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -35,6 +35,7 @@ # style_urls: list. List of URLs to CSS style sheets. # message: string. A message to display to the user. May contain HTML. # atomlink: Atom link URL, May contain HTML + # generate_api_token: generate a token which can be used to make authenticated webservice calls #%] [% IF message %] @@ -52,6 +53,7 @@ no_yui = 0 jquery = [] jquery_css = [] + generate_api_token = 0 %] [% IF NOT no_yui %] @@ -226,7 +228,7 @@ version_required: 'You must select a Version for this [% terms.bug %].' } - [% IF javascript_urls.containsany(['js/bug.js', 'js/field.js', 'js/comment-tagging.js']) %] + [% IF generate_api_token %] , api_token: '[% get_api_token FILTER js FILTER html %]' [% END %] }; |