diff options
author | ivan <ivan> | 2002-04-07 05:56:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-04-07 05:56:09 +0000 |
commit | 44e3eff0aa6e7bdb7f4ecd9ee1ddf141e1b68af3 (patch) | |
tree | 6a636ec1d2984f18a97515ef54969c4c9a641e8c /httemplate/edit/process/msgcat.cgi | |
parent | fca110eff969104793774ed717985e91c53f5318 (diff) |
working message catalogs (not used for enough yet)
- almost (but not quite) closes Bug#385 - still have to catalog the
backend things triggered by signup server.
Diffstat (limited to 'httemplate/edit/process/msgcat.cgi')
-rw-r--r-- | httemplate/edit/process/msgcat.cgi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/edit/process/msgcat.cgi b/httemplate/edit/process/msgcat.cgi new file mode 100644 index 000000000..ab30f06b5 --- /dev/null +++ b/httemplate/edit/process/msgcat.cgi @@ -0,0 +1,19 @@ +<% + +my $error; +foreach my $param ( grep { /^\d+$/ } $cgi->param ) { + my $old = qsearchs('msgcat', { msgnum=>$param } ); + my $new = new FS::msgcat { $old->hash }; + $new->msg($cgi->param($param)); + $error = $new->replace($old); + last if $error; +} + +if ( $error ) { + $cgi->param('error',$error); + print $cgi->redirect($p. "msgcat.cgi?". $cgi->query_string ); +} else { + print $cgi->redirect(popurl(3). "browse/msgcat.cgi"); +} + +%> |