X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;fp=httemplate%2Fconfig%2Fconfig.cgi;h=6a1eaecf772efb1c93105c4fc06f679b53ecff90;hp=040ed0403005007a99ee28bd059f90da1c344b6d;hb=62b12e8b09608b7081ffd596be899fafb5c2403f;hpb=43af0ec176ff2ad5c4ecd60a58145f8370cc39d7 diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 040ed0403..6a1eaecf7 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -24,6 +24,7 @@ function SafeOnsubmit() {
+ Setting <% $key %> @@ -49,7 +50,8 @@ Setting <% $key %> <% $conf->exists($key, $agentnum) ? 'Current image
'. '
' + ';agentnum='. $agentnum. + ';locale='. $locale .'">
' : '' %> @@ -318,10 +320,6 @@ Setting <% $key %> <%once> -my $conf = new FS::Conf; -my @config_items = $conf->config_items; -my %confitems = map { $_->key => $_ } @config_items; - my %element_types = map { $_ => 1 } qw( select-part_svc select-part_pkg select-pkg_class select-agent ); @@ -339,6 +337,15 @@ if ($cgi->param('agentnum') =~ /(\d+)$/) { $agentnum=$1; } +my $locale = ''; +if ( $cgi->param('locale') =~ /^(\w+_\w+)$/) { + $locale = $1; +} + +my $conf = new FS::Conf { 'locale' => $locale, 'localeonly' => 1 }; +my @config_items = $conf->config_items; +my %confitems = map { $_->key => $_ } @config_items; + my $agent = ''; my $title; if ($agentnum) {