Commit 9d201119 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

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)
parent 41f2789c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment