Bug 393148 â Template include path used by Bugzilla/Template.pm ordered wrongly.
Follow-up warning fix patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=mkanat git-svn-id: svn://10.0.0.236/trunk@232833 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -118,7 +118,7 @@ sub template_include_path {
|
||||
# we support every language installed in the template/ directory.
|
||||
|
||||
my @wanted;
|
||||
if (defined $params->{only_language}) {
|
||||
if ($params->{only_language}) {
|
||||
@wanted = ($params->{only_language});
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -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"};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user