X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f6669610e0738fa19fd8345132ff43bf8bb8b06a..9c6337f3bbff812d5c0a8cdfe9ff14565f050fa5:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index e1646e69d..db9b5033d 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -43,6 +43,7 @@ use CGI; use CGI::Ajax; use Cwd; use Encode; +use File::Copy; use IO::File; use SL::Auth; use SL::Auth::DB; @@ -1269,6 +1270,16 @@ sub parse_template { $self->error("$self->{IN} : " . $template->get_error()); } + if ($self->{media} eq 'file') { + copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file; + $self->cleanup; + chdir("$self->{cwd}"); + + $::lxdebug->leave_sub(); + + return; + } + if ($template->uses_temp_file() || $self->{media} eq 'email') { if ($self->{media} eq 'email') {