From: Moritz Bunkus Date: Fri, 4 Jul 2014 11:29:20 +0000 (+0200) Subject: CreatePDF-Helfer: Anpassung an API-Ă„nderung SL::Template.*new X-Git-Tag: release-3.2.0beta~397 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b1cf0c0b1f64742c78426285b30cc399e10d2f0e;p=kivitendo-erp.git CreatePDF-Helfer: Anpassung an API-Ă„nderung SL::Template.*new --- diff --git a/SL/Helper/CreatePDF.pm b/SL/Helper/CreatePDF.pm index 555e75d73..1baeada58 100644 --- a/SL/Helper/CreatePDF.pm +++ b/SL/Helper/CreatePDF.pm @@ -47,11 +47,12 @@ sub create_pdf { UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1, ); - my $parser = SL::Template::LaTeX->new( - $form->{IN}, - $form, - \%::myconfig, - $userspath, + my $parser = SL::Template::create( + type => 'LaTeX', + source => $form->{IN}, + form => $form, + myconfig => \%::myconfig, + userspath => $userspath, ); my $result = $parser->parse($temp_fh);