diff options
| author | mark <mark> | 2011-09-16 00:15:48 +0000 | 
|---|---|---|
| committer | mark <mark> | 2011-09-16 00:15:48 +0000 | 
| commit | 9c866ccad0f187f29d21f12b93f15f2787aa9843 (patch) | |
| tree | f1a17825d748de59b6d578f5510ab2bb9e6a43bb /httemplate/config/config-process.cgi | |
| parent | 2e9b97a7492a06855cc55a65f4df7b14607a0db9 (diff) | |
invoice template and config localization, #12367
Diffstat (limited to 'httemplate/config/config-process.cgi')
| -rw-r--r-- | httemplate/config/config-process.cgi | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index 4a84c0dd1..c62a8c784 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -25,7 +25,7 @@  %  }  %  %} else { -<% header('Configuration set') %> +<& /elements/header.html, 'Configuration set' &>    <SCRIPT TYPE="text/javascript">  %   my $n = 0;  %   foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { @@ -103,7 +103,9 @@ my %namecol = (  my $curuser = $FS::CurrentUser::CurrentUser;  die "access denied\n" unless $curuser->access_right('Configuration'); -my $conf = new FS::Conf; +my $locale = $cgi->param('locale') || ''; + +my $conf = new FS::Conf { 'locale' => $locale };  if ( $conf->exists('disable_settings_changes') ) {    my @changers = split(/\s*,\s*/, $conf->config('disable_settings_changes'));  | 
