Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f7fd4311

Von Bernd Bleßmann vor etwa 5 Jahren hinzugefügt

  • ID f7fd431178995a3c76e39d531d366ec494858812
  • Vorgänger 894ac4ca
  • Nachfolger 6fe302af

CreatePDF-Helper: UNLINK für temporäre Dateien (wieder) richtig setzen

Unterschiede anzeigen:

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