diff options
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]); |