]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 545260: In the code for template hooks, the cached code of a hook
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 17 Feb 2010 22:36:33 +0000 (14:36 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 17 Feb 2010 22:36:33 +0000 (14:36 -0800)
wasn't being stored properly per-language.
r=mkanat, a=mkanat (module owner)

Bugzilla/Template/Plugin/Hook.pm

index e993060dd554de88e4a471ab12f597489ee065d1..d780170f811317aec82ab138ea58d50b63f644aa 100644 (file)
@@ -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);