From fc9166105862d8fa19ecb5c7c040daf62f764c95 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sun, 28 Feb 2010 15:15:43 -0800 Subject: Bug 545235: Simplify Bugzilla's language-choosing code r=LpSolit, a=LpSolit --- Bugzilla/Template/Plugin/Hook.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Bugzilla/Template/Plugin/Hook.pm') 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}; } -- cgit v1.2.3-24-g4f1b