summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 6b53d5ae3..863c815af 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -85,11 +85,10 @@ sub _load_constants {
# Templates may also be found in the extensions/ tree
sub getTemplateIncludePath {
my $cache = Bugzilla->request_cache;
- my $lang = $cache->{'language'} || undef;
+ my $lang = $cache->{'language'} || '';
$cache->{"template_include_path_$lang"} ||= template_include_path({
use_languages => Bugzilla->languages,
only_language => $lang });
- $lang ||= '';
return $cache->{"template_include_path_$lang"};
}