SL/Template.pm in eine Datei pro Package aufgeteilt.
[kivitendo-erp.git] / SL / DN.pm
index f1e132f..72154c2 100644 (file)
--- a/SL/DN.pm
+++ b/SL/DN.pm
@@ -363,7 +363,7 @@ sub send_email {
     return;
   }
 
-  my $template     = PlainTextTemplate->new(undef, $form, $myconfig);
+  my $template     = SL::Template::create(type => 'PlainText', form => $form, myconfig => $myconfig);
   my $mail         = Mailer->new();
   $mail->{from}    = $myconfig->{email};
   $mail->{to}      = $ref->{recipient};