summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-08-22 12:54:53 +0200
committerwurblzap%gmail.com <>2007-08-22 12:54:53 +0200
commitf192744dc50afee92ad585fdedf17f61dc5263a3 (patch)
treed81102654048572dc102b8b551d608fadc172236 /Bugzilla
parent3116b097e51b3d188d59004a018220c70e90b8e6 (diff)
downloadbugzilla-f192744dc50afee92ad585fdedf17f61dc5263a3.tar.gz
bugzilla-f192744dc50afee92ad585fdedf17f61dc5263a3.tar.xz
Bug 393148 – Template include path used by Bugzilla/Template.pm ordered wrongly.
Patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm3
1 files changed, 2 insertions, 1 deletions
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"};
}