From 53c26ac20286b4f80238778ef6d649ea1c77e077 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 3 Jul 2013 09:57:14 +0200 Subject: [PATCH] =?utf8?q?Datei=20vor=20Kopieren=20schlie=C3=9Fen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index 5c701f792..fc900c108 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1069,9 +1069,11 @@ sub parse_template { $self->cleanup(); $self->error("$self->{IN} : " . $template->get_error()); } + + close OUT if $self->{OUT}; + Common::copy_file_to_webdav_folder($self) if ($::instance_conf->get_webdav and $::instance_conf->get_webdav_documents and not $self->{preview}); - 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