summaryrefslogtreecommitdiff
path: root/httemplate/pref
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-08-18 14:24:41 -0700
committerIvan Kohler <ivan@freeside.biz>2016-08-18 14:55:11 -0700
commit30c9a71ef6f389f1fb70b1551635c9268f3be94c (patch)
treea32c229fc8db84c7c96c705544198fd074b1d2f9 /httemplate/pref
parentdf2d61c5308891cc5d4fe7df9cdaef623a16fce3 (diff)
Merge branch 'github/pr/55_reprise'
Diffstat (limited to 'httemplate/pref')
-rw-r--r--httemplate/pref/pref.html12
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>