diff options
author | Ivan Kohler <ivan@freeside.biz> | 2022-05-31 15:16:44 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2022-05-31 15:16:44 -0700 |
commit | 4ff0725a89f9bc8678c046648ebd803fbd82f740 (patch) | |
tree | cb9a94c679984d0f88389d6a8e42f5ea1f4d2ca4 /FS/FS | |
parent | 7e5fce86f887975d57029e28511100e511d1bdb9 (diff) |
explicit dep on PDF::WebKit
Diffstat (limited to 'FS/FS')
-rw-r--r-- | FS/FS/msg_template.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 0a16724..33e150a 100644 --- 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 PDF::WebKit; 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; - eval "use PDF::WebKit"; - die $@ if $@; my %opt = @_; my %hash = $self->prepare(%opt); my $html = $hash{'html_body'}; |