summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm
index 36254a9c1..c488ab314 100644
--- a/Bugzilla/Install.pm
+++ b/Bugzilla/Install.pm
@@ -36,6 +36,7 @@ use Bugzilla::Util qw(get_text);
use Bugzilla::Version;
sub SETTINGS {
+ my @languages = split(/[\s,]+/, Bugzilla->params->{'languages'});
return {
# 2005-03-03 travis@sedsystems.ca -- Bug 41972
display_quips => { options => ["on", "off"], default => "on" },
@@ -58,8 +59,8 @@ sub SETTINGS {
# 2006-08-04 wurblzap@gmail.com -- Bug 322693
skin => { subclass => 'Skin', default => 'standard' },
# 2006-12-10 LpSolit@gmail.com -- Bug 297186
- lang => { options => [split(/[\s,]+/, Bugzilla->params->{'languages'})],
- default => Bugzilla->params->{'defaultlanguage'} }
+ lang => { options => \@languages,
+ default => $languages[0] }
}
};