From b7147b778824e13a15f912fdf458bf3959d439e5 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 5 Mar 2015 12:57:51 +0800 Subject: Bug 1128853: Bugzilla shouldn't try to write API tokens into the shadow DB r=dkl,a=glob --- template/en/default/global/header.html.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 5c731c008..5b3cd03f3 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -20,6 +20,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 %] @@ -37,6 +38,7 @@ no_yui = 0 jquery = [] jquery_css = [] + generate_api_token = 0 %] [% IF NOT no_yui %] @@ -206,7 +208,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 %] }; -- cgit v1.2.3-24-g4f1b