projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git]
/
FS
/
FS
/
msg_template.pm
diff --git
a/FS/FS/msg_template.pm
b/FS/FS/msg_template.pm
index
0a16724
..
33e150a
100644
(file)
--- a/
FS/FS/msg_template.pm
+++ b/
FS/FS/msg_template.pm
@@
-11,6
+11,7
@@
use FS::cust_msg;
use FS::template_content;
use Date::Format qw(time2str);
use FS::template_content;
use Date::Format qw(time2str);
+use PDF::WebKit;
FS::UID->install_callback( sub { $conf = new FS::Conf; } );
FS::UID->install_callback( sub { $conf = new FS::Conf; } );
@@
-411,8
+412,6
@@
Options are as for 'prepare', but 'from' and 'to' are meaningless.
sub render {
my $self = shift;
sub render {
my $self = shift;
- eval "use PDF::WebKit";
- die $@ if $@;
my %opt = @_;
my %hash = $self->prepare(%opt);
my $html = $hash{'html_body'};
my %opt = @_;
my %hash = $self->prepare(%opt);
my $html = $hash{'html_body'};