summaryrefslogtreecommitdiffstats
path: root/extensions/Voting/template
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-14 01:32:32 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-14 01:32:32 +0100
commit217beee45f5ba22aea80c8a61a639b55fe53293c (patch)
treee7865b6ac2b112cb6f5e22f6cb5d4e7aa77fe3f8 /extensions/Voting/template
parentf276a11f82d1670eea4014f4d87b289d4b7921ca (diff)
downloadbugzilla-217beee45f5ba22aea80c8a61a639b55fe53293c.tar.gz
bugzilla-217beee45f5ba22aea80c8a61a639b55fe53293c.tar.xz
Bug 498309: Speed up show_bug.cgi when there are many comments by caching
field-descs globally for all template calls r=LpSolit, a=LpSolit
Diffstat (limited to 'extensions/Voting/template')
-rw-r--r--extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl b/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl
index 2fd798084..1becab4da 100644
--- a/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl
+++ b/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl
@@ -18,5 +18,6 @@
# Max Kanat-Alexander <mkanat@bugzilla.org>
#%]
-[% field_descs.votes = "Votes" %]
-
+[% IF in_template_var %]
+ [% vars.field_descs.votes = "Votes" %]
+[% END %]