use SL::OE;
use SL::Template;
use SL::User;
+ use SL::X;
use Template;
use URI;
use List::Util qw(first max min sum);
sub throw_on_error {
my ($self, $code) = @_;
- local $self->{__ERROR_HANDLER} = sub { die({ error => $_[0] }) };
+ local $self->{__ERROR_HANDLER} = sub { die SL::X::FormError->new($_[0]) };
$code->();
}
local (*IN, *OUT);
my $userspath = $::lx_office_conf{paths}->{userspath};
-
$self->{"cwd"} = getcwd();
$self->{"tmpdir"} = $self->{cwd} . "/${userspath}";
$result = $template->parse(*STDOUT);
}
+ Common::copy_file_to_webdav_folder($self) if ($self->{webdav});
if (!$result) {
$self->cleanup();
$self->error("$self->{IN} : " . $template->get_error());