From: Max Kanat-Alexander Date: Wed, 17 Feb 2010 22:36:33 +0000 (-0800) Subject: Bug 545260: In the code for template hooks, the cached code of a hook X-Git-Tag: bugzilla-3.6rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be369078836c4846bc9cfb79d2b1f9d45f0a199e;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);