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.pm | |
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.pm')
-rw-r--r-- | Bugzilla/Template.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index c6da645b2..b623bd6d5 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -87,9 +87,8 @@ sub _load_constants { sub getTemplateIncludePath { my $cache = Bugzilla->request_cache; my $lang = $cache->{'language'} || ''; - $cache->{"template_include_path_$lang"} ||= template_include_path({ - use_languages => Bugzilla->languages, - only_language => $lang }); + $cache->{"template_include_path_$lang"} ||= + template_include_path({ language => $lang }); return $cache->{"template_include_path_$lang"}; } @@ -815,7 +814,7 @@ sub precompile_templates { print install_string('template_precompile') if $output; - my $paths = template_include_path({ use_languages => Bugzilla->languages }); + my $paths = template_include_path(); foreach my $dir (@$paths) { my $template = Bugzilla::Template->create(include_path => [$dir]); |