projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfb8e58
)
fix a problem running "letter" events more than once in a process, #32603
author
Mark Wells
<mark@freeside.biz>
Wed, 25 Feb 2015 07:02:08 +0000
(23:02 -0800)
committer
Mark Wells
<mark@freeside.biz>
Wed, 25 Feb 2015 07:02:08 +0000
(23:02 -0800)
FS/FS/msg_template.pm
patch
|
blob
|
history
diff --git
a/FS/FS/msg_template.pm
b/FS/FS/msg_template.pm
index
9599e4f
..
c52b633
100644
(file)
--- a/
FS/FS/msg_template.pm
+++ b/
FS/FS/msg_template.pm
@@
-467,9
+467,11
@@
sub render {
# Graphics/stylesheets should probably go in /var/www on the Freeside
# machine.
+ my $script_path = `/usr/bin/which freeside-wkhtmltopdf`;
+ chomp $script_path;
my $kit = PDF::WebKit->new(\$html); #%options
# hack to use our wrapper script
- $kit->configure(sub { shift->wkhtmltopdf(
'freeside-wkhtmltopdf'
) });
+ $kit->configure(sub { shift->wkhtmltopdf(
$script_path
) });
$kit->to_pdf;
}