From 56a13992f2f40a679a03774c43b1f559a80a34cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Sep 2011 16:15:16 +0200 Subject: [PATCH 1/1] STDOUT nicht neu aufmachen --- SL/Form.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1