X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8f84155d7599f51cb9da4aa8b03c554ad13244ee..56a13992f2f40a679a03774c43b1f559a80a34cc:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 68b168127..2116adb55 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1323,7 +1323,7 @@ sub parse_template { if ($self->{OUT}) { open(OUT, ">", $self->{OUT}) or $self->error("$self->{OUT} : $!"); } else { - open(OUT, ">&", \*STDOUT) or $self->error("STDOUT : $!"); + *OUT = ($::dispatcher->get_standard_filehandles)[1]; $self->header; } @@ -1332,7 +1332,7 @@ sub parse_template { $self->error("$self->{IN} : " . $template->get_error()); } - close OUT; + close OUT if $self->{OUT}; if ($self->{media} eq 'file') { copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file;