diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-01 00:15:43 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-01 00:15:43 +0100 |
commit | fc9166105862d8fa19ecb5c7c040daf62f764c95 (patch) | |
tree | a885ffae1f0998654f5ae5fe6b3e6edafdcfd643 /Bugzilla/Template | |
parent | bb2b0198824b22e7d333f7938494be4a5a4ef7c0 (diff) | |
download | bugzilla-fc9166105862d8fa19ecb5c7c040daf62f764c95.tar.gz bugzilla-fc9166105862d8fa19ecb5c7c040daf62f764c95.tar.xz |
Bug 545235: Simplify Bugzilla's language-choosing code
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Template')
-rw-r--r-- | Bugzilla/Template/Plugin/Hook.pm | 7 |
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}; } |