X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FHelper%2FCreatePDF.pm;fp=SL%2FHelper%2FCreatePDF.pm;h=13d5174601d2d6e5887c7f57aaa1f64f3772b0e6;hb=f7fd431178995a3c76e39d531d366ec494858812;hp=c5c02e2cab98a8573b4c43a3048b80bc30b90e23;hpb=894ac4cac779a9993350dc14534d01ab04e4a281;p=kivitendo-erp.git diff --git a/SL/Helper/CreatePDF.pm b/SL/Helper/CreatePDF.pm index c5c02e2ca..13d517460 100644 --- a/SL/Helper/CreatePDF.pm +++ b/SL/Helper/CreatePDF.pm @@ -55,7 +55,7 @@ sub create_parsed_file { 'kivitendo-printXXXXXX', SUFFIX => ".${suffix}", DIR => $form->{tmpdir}, - UNLINK => $::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files}, + UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1, ); $form->{tmpfile} = $tmpfile; @@ -144,7 +144,7 @@ sub merge_pdfs { 'kivitendo-printXXXXXX', SUFFIX => '.pdf', DIR => $::lx_office_conf{paths}->{userspath}, - UNLINK => $::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files}, + UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1, ); close $temp_fh; @@ -163,7 +163,7 @@ sub merge_pdfs { 'kivitendo-contentXXXXXX', SUFFIX => '.pdf', DIR => $::lx_office_conf{paths}->{userspath}, - UNLINK => $::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files}, + UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1, ); binmode $temp_fh; print $temp_fh $params{inp_content};