Commit f192744d authored by wurblzap%gmail.com's avatar wurblzap%gmail.com

Bug 393148 – Template include path used by Bugzilla/Template.pm ordered wrongly.

Patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=mkanat
parent 3116b097
......@@ -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"};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment