summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2022-05-31 15:16:41 -0700
committerIvan Kohler <ivan@freeside.biz>2022-05-31 15:16:41 -0700
commit7fa372b7beec7595c22708755fbf753193496313 (patch)
tree92f3bd2113fcb92ce30cb0f4969891a6f7aa8a26 /FS
parenteb11834cb545a83c1fddf8febcf309153a707f06 (diff)
explicit dep on PDF::WebKit
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/msg_template.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm
index 0a16724a8..33e150ae3 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'};