summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-17 23:35:29 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-17 23:35:29 +0100
commit9d201119cce9bc16ef5e1791b3e6c4cf5f4ea604 (patch)
tree200ca6f77c00789c7a568aaa3965b3add3fab69b /Bugzilla/Template
parent41f2789c933d7a7c32960c8b976d5d75de7433f2 (diff)
downloadbugzilla-9d201119cce9bc16ef5e1791b3e6c4cf5f4ea604.tar.gz
bugzilla-9d201119cce9bc16ef5e1791b3e6c4cf5f4ea604.tar.xz
Bug 545260: In the code for template hooks, the cached code of a hook
wasn't being stored properly per-language. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Template')
-rw-r--r--Bugzilla/Template/Plugin/Hook.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm
index e993060dd..d780170f8 100644
--- a/Bugzilla/Template/Plugin/Hook.pm
+++ b/Bugzilla/Template/Plugin/Hook.pm
@@ -62,7 +62,7 @@ sub process {
# Get the hooks out of the cache if they exist. Otherwise, read them
# from the disk.
my $cache = Bugzilla->request_cache->{template_plugin_hook_cache} ||= {};
- my $lang = $cache->{language} || '';
+ my $lang = Bugzilla->request_cache->{language} || '';
$cache->{"${lang}__$extension_template"}
||= $self->_get_hooks($extension_template);