projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finanzbuchhaltung: schönere »…verbucht«-Meldungen via Flash
[kivitendo-erp.git]
/
SL
/
Template
/
HTML.pm
diff --git
a/SL/Template/HTML.pm
b/SL/Template/HTML.pm
index
09f24fc
..
ecc3410
100644
(file)
--- a/
SL/Template/HTML.pm
+++ b/
SL/Template/HTML.pm
@@
-70,7
+70,9
@@
sub convert_to_postscript {
$psfile .= ".ps";
}
$psfile .= ".ps";
}
- system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile");
+ if (system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile") == -1) {
+ die "system call to $::lx_office_conf{applications}->{html2ps} failed: $!";
+ }
if ($?) {
$self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;
if ($?) {
$self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;
@@
-102,7
+104,9
@@
sub convert_to_pdf {
$pdffile .= ".pdf";
}
$pdffile .= ".pdf";
}
- system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile");
+ if (system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile") == -1) {
+ die "system call to $::lx_office_conf{applications}->{html2ps} failed: $!";
+ }
if ($?) {
$self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;
if ($?) {
$self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;