From: Max Kanat-Alexander Date: Wed, 17 Feb 2010 22:35:29 +0000 (-0800) Subject: Bug 545260: In the code for template hooks, the cached code of a hook X-Git-Tag: bugzilla-3.7.1~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d201119cce9bc16ef5e1791b3e6c4cf5f4ea604;p=thirdparty%2Fbugzilla.git 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) --- diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm index e993060dd5..d780170f81 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);