From f192744dc50afee92ad585fdedf17f61dc5263a3 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Wed, 22 Aug 2007 10:54:53 +0000 Subject: Bug 393148 – Template include path used by Bugzilla/Template.pm ordered wrongly. Patch by Marc Schumann ; r=mkanat; a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Template.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index b0c185830..6b53d5ae3 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -85,10 +85,11 @@ sub _load_constants { # Templates may also be found in the extensions/ tree sub getTemplateIncludePath { my $cache = Bugzilla->request_cache; - my $lang = $cache->{'language'} || ""; + my $lang = $cache->{'language'} || undef; $cache->{"template_include_path_$lang"} ||= template_include_path({ use_languages => Bugzilla->languages, only_language => $lang }); + $lang ||= ''; return $cache->{"template_include_path_$lang"}; } -- cgit v1.2.3-24-g4f1b