]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Template/HTML.pm
Bessere Fehlermeldung ausgeben, wenn eine Anwendung wie pdflatex nicht gefunden wird
[kivitendo-erp.git] / SL / Template / HTML.pm
index 0ff939fd872ca5072817dc7b1b0908975f42a883..09f24fcebc5bf799ac99e6f60d27d93f6bd7222d 100644 (file)
@@ -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;
   }