From b1cf0c0b1f64742c78426285b30cc399e10d2f0e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 4 Jul 2014 13:29:20 +0200 Subject: [PATCH] =?utf8?q?CreatePDF-Helfer:=20Anpassung=20an=20API-=C3=84n?= =?utf8?q?derung=20SL::Template.*new?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Helper/CreatePDF.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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); -- 2.20.1