From f6ebf7cbe154ec2ceab679a2ed314d595bf7c42f Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Wed, 17 Feb 2010 22:47:48 +0000 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) git-svn-id: svn://10.0.0.236/branches/BUGZILLA-3_6-BRANCH@259738 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Template/Plugin/Hook.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 0b33a3c197c..fcb7d6eb405 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -6979 \ No newline at end of file +6980 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Template/Plugin/Hook.pm b/mozilla/webtools/bugzilla/Bugzilla/Template/Plugin/Hook.pm index e993060dd55..d780170f811 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Template/Plugin/Hook.pm +++ b/mozilla/webtools/bugzilla/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);