summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template/Plugin/Hook.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-01 00:15:43 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-01 00:15:43 +0100
commitfc9166105862d8fa19ecb5c7c040daf62f764c95 (patch)
treea885ffae1f0998654f5ae5fe6b3e6edafdcfd643 /Bugzilla/Template/Plugin/Hook.pm
parentbb2b0198824b22e7d333f7938494be4a5a4ef7c0 (diff)
downloadbugzilla-fc9166105862d8fa19ecb5c7c040daf62f764c95.tar.gz
bugzilla-fc9166105862d8fa19ecb5c7c040daf62f764c95.tar.xz
Bug 545235: Simplify Bugzilla's language-choosing code
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Template/Plugin/Hook.pm')
-rw-r--r--Bugzilla/Template/Plugin/Hook.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm
index d780170f8..1370f58e0 100644
--- a/Bugzilla/Template/Plugin/Hook.pm
+++ b/Bugzilla/Template/Plugin/Hook.pm
@@ -27,7 +27,7 @@ use strict;
use base qw(Template::Plugin);
use Bugzilla::Constants;
-use Bugzilla::Install::Util qw(include_languages template_include_path);
+use Bugzilla::Install::Util qw(template_include_path);
use Bugzilla::Util;
use Bugzilla::Error;
@@ -97,9 +97,8 @@ sub _template_hook_include_path {
my $language = $cache->{language} || '';
my $cache_key = "template_plugin_hook_include_path_$language";
$cache->{$cache_key} ||= template_include_path({
- use_languages => Bugzilla->languages,
- only_language => $language,
- hook => 1,
+ language => $language,
+ hook => 1,
});
return $cache->{$cache_key};
}