diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-08-18 14:24:41 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-08-18 14:55:11 -0700 |
commit | 30c9a71ef6f389f1fb70b1551635c9268f3be94c (patch) | |
tree | a32c229fc8db84c7c96c705544198fd074b1d2f9 /httemplate/pref | |
parent | df2d61c5308891cc5d4fe7df9cdaef623a16fce3 (diff) |
Merge branch 'github/pr/55_reprise'
Diffstat (limited to 'httemplate/pref')
-rw-r--r-- | httemplate/pref/pref.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index c6bcf6f66..93c71996c 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -36,7 +36,7 @@ Interface <TH ALIGN="right">Locale: </TH> <TD COLSPAN=2> <SELECT NAME="locale"> -% foreach my $locale ( FS::Locales->locales ) { +% foreach my $locale ( @locales ) { % my %info = FS::Locales->locale_info($locale); % my $selected = ($locale eq $curuser->option('locale')) % ? 'SELECTED' : ''; @@ -287,4 +287,14 @@ my $menu_position = $1; =~ /^([,\w\@.\-]*)$/ or die "illegal email_address"; #too late my $email_address = $1; +my $conf = new FS::Conf; + +my @locales = $conf->config('available-locales'); + +if ( ! @locales ) { + + @locales = FS::Locales->locales ; + +} + </%init> |