Revision f7fd4311
Von Bernd Bleßmann vor fast 6 Jahren hinzugefügt
SL/Helper/CreatePDF.pm | ||
---|---|---|
55 | 55 |
'kivitendo-printXXXXXX', |
56 | 56 |
SUFFIX => ".${suffix}", |
57 | 57 |
DIR => $form->{tmpdir}, |
58 |
UNLINK => $::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files},
|
|
58 |
UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1,
|
|
59 | 59 |
); |
60 | 60 |
|
61 | 61 |
$form->{tmpfile} = $tmpfile; |
... | ... | |
144 | 144 |
'kivitendo-printXXXXXX', |
145 | 145 |
SUFFIX => '.pdf', |
146 | 146 |
DIR => $::lx_office_conf{paths}->{userspath}, |
147 |
UNLINK => $::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files},
|
|
147 |
UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1,
|
|
148 | 148 |
); |
149 | 149 |
close $temp_fh; |
150 | 150 |
|
... | ... | |
163 | 163 |
'kivitendo-contentXXXXXX', |
164 | 164 |
SUFFIX => '.pdf', |
165 | 165 |
DIR => $::lx_office_conf{paths}->{userspath}, |
166 |
UNLINK => $::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files},
|
|
166 |
UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1,
|
|
167 | 167 |
); |
168 | 168 |
binmode $temp_fh; |
169 | 169 |
print $temp_fh $params{inp_content}; |
Auch abrufbar als: Unified diff
CreatePDF-Helper: UNLINK für temporäre Dateien (wieder) richtig setzen