From be369078836c4846bc9cfb79d2b1f9d45f0a199e Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 17 Feb 2010 14:36:33 -0800 Subject: [PATCH] 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) --- Bugzilla/Template/Plugin/Hook.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3