projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CreatePDF-Helper: UNLINK für temporäre Dateien (wieder) richtig setzen
[kivitendo-erp.git]
/
SL
/
Helper
/
CreatePDF.pm
diff --git
a/SL/Helper/CreatePDF.pm
b/SL/Helper/CreatePDF.pm
index
c5c02e2
..
13d5174
100644
(file)
--- 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},
'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;
);
$form->{tmpfile} = $tmpfile;
@@
-144,7
+144,7
@@
sub merge_pdfs {
'kivitendo-printXXXXXX',
SUFFIX => '.pdf',
DIR => $::lx_office_conf{paths}->{userspath},
'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;
);
close $temp_fh;
@@
-163,7
+163,7
@@
sub merge_pdfs {
'kivitendo-contentXXXXXX',
SUFFIX => '.pdf',
DIR => $::lx_office_conf{paths}->{userspath},
'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};
);
binmode $temp_fh;
print $temp_fh $params{inp_content};