X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/3a94f4d2dd9a835d4a7007e1b999ea00b3c4e1cd..da2fecb453416b3731a896ab6d35e9992be3d9eb:/SL/Template/HTML.pm diff --git a/SL/Template/HTML.pm b/SL/Template/HTML.pm index 0ff939fd8..09f24fceb 100644 --- a/SL/Template/HTML.pm +++ b/SL/Template/HTML.pm @@ -72,8 +72,7 @@ sub convert_to_postscript { system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile"); if ($?) { - $self->{"error"} = $form->cleanup(); - $self->cleanup(); + $self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps}); return 0; } @@ -105,8 +104,7 @@ sub convert_to_pdf { system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile"); if ($?) { - $self->{"error"} = $form->cleanup(); - $self->cleanup(); + $self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps}); return 0; }