From: wurblzap%gmail.com <> Date: Wed, 22 Aug 2007 10:54:53 +0000 (+0000) Subject: Bug 393148 – Template include path used by Bugzilla/Template.pm ordered wrongly. X-Git-Tag: bugzilla-3.1.2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f192744dc50afee92ad585fdedf17f61dc5263a3;p=thirdparty%2Fbugzilla.git Bug 393148 – Template include path used by Bugzilla/Template.pm ordered wrongly. Patch by Marc Schumann ; r=mkanat; a=mkanat --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index b0c185830a..6b53d5ae3b 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"}; }