From c56f5e3c03177edf52172c8a164f66c354d0e147 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Wed, 22 Aug 2007 01:47:51 +0000 Subject: =?UTF-8?q?Bug=20365378=20=C3=A2=C2=80=C2=93=20The=20'languages'?= =?UTF-8?q?=20parameter=20is=20not=20necessary.=20Patch=20by=20Marc=20Schu?= =?UTF-8?q?mann=20;=20r=3DLpSolit;=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Template.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Bugzilla/Template.pm') 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. -- cgit v1.2.1