X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate%2FHTML.pm;h=0ff939fd872ca5072817dc7b1b0908975f42a883;hb=0389fbc606e78cdacea36f4bf385e75f879443a2;hp=1fa7252379b3644aa4670168d168e5770ee9f45f;hpb=0fba3edda47fca21bedb14eb88e0f5f8d983bb38;p=kivitendo-erp.git diff --git a/SL/Template/HTML.pm b/SL/Template/HTML.pm index 1fa725237..0ff939fd8 100644 --- a/SL/Template/HTML.pm +++ b/SL/Template/HTML.pm @@ -1,9 +1,6 @@ package SL::Template::HTML; -use SL::Template::LaTeX; - -use vars qw(@ISA); -@ISA = qw(SL::Template::LaTeX); +use parent qw(SL::Template::LaTeX); use strict; @@ -73,7 +70,7 @@ sub convert_to_postscript { $psfile .= ".ps"; } - system("html2ps -f html2ps-config < $form->{tmpfile} > $psfile"); + system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile"); if ($?) { $self->{"error"} = $form->cleanup(); $self->cleanup(); @@ -106,7 +103,7 @@ sub convert_to_pdf { $pdffile .= ".pdf"; } - system("html2ps -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile"); + system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile"); if ($?) { $self->{"error"} = $form->cleanup(); $self->cleanup();