summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-08-22 03:47:51 +0200
committerwurblzap%gmail.com <>2007-08-22 03:47:51 +0200
commitc56f5e3c03177edf52172c8a164f66c354d0e147 (patch)
treecaef8b053a3031404d31d7c1d9dca2b202e44e70 /Bugzilla/Template.pm
parent5a1fdacb12095b417382c15186e5aaaec7eed3a1 (diff)
downloadbugzilla-c56f5e3c03177edf52172c8a164f66c354d0e147.tar.gz
bugzilla-c56f5e3c03177edf52172c8a164f66c354d0e147.tar.xz
Bug 365378 – The 'languages' parameter is not necessary.
Patch by Marc Schumann <wurblzap@gmail.com>; r=LpSolit; a=LpSolit
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 20fe83112..b0c185830 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -87,7 +87,7 @@ sub getTemplateIncludePath {
my $cache = Bugzilla->request_cache;
my $lang = $cache->{'language'} || "";
$cache->{"template_include_path_$lang"} ||= template_include_path({
- use_languages => [split(/[\s,]+/, Bugzilla->params->{'languages'})],
+ use_languages => Bugzilla->languages,
only_language => $lang });
return $cache->{"template_include_path_$lang"};
}
@@ -767,9 +767,6 @@ sub precompile_templates {
-d "$templatedir/$dir/default" || -d "$templatedir/$dir/custom"
|| next;
local $ENV{'HTTP_ACCEPT_LANGUAGE'} = $dir;
- # We locally hack this parameter so that Bugzilla::Template
- # accepts this language no matter what.
- local Bugzilla->params->{'languages'} = "$dir,en";
my $template = Bugzilla::Template->create(clean_cache => 1);
# Precompile all the templates found in all the directories.