Skip to content
Snippets Groups Projects
Commit 64f1d42d authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

enforce strictness

parent 89903f06
Branches
Tags
No related merge requests found
package IdPAccountManager::Tools; package IdPAccountManager::Tools;
use strict;
use warnings;
use Digest::SHA; use Digest::SHA;
use Encode; use Encode;
use Template; use Template;
...@@ -145,7 +148,7 @@ sub mail_notice { ...@@ -145,7 +148,7 @@ sub mail_notice {
} }
$logger->tracef( $logger->tracef(
sprintf('(template=%s, to=%s)', $in{template}, $mail_data->{to}) sprintf('(template=%s, to=%s)', $args{template}, $mail_data->{to})
); );
open SENDMAIL, open SENDMAIL,
...@@ -154,7 +157,7 @@ sub mail_notice { ...@@ -154,7 +157,7 @@ sub mail_notice {
. " $notice_email"; . " $notice_email";
my $tt2 = Template->new({ my $tt2 = Template->new({
FILTERS => { qencode => [ \qencode, 0 ] }, FILTERS => { qencode => [ \&qencode, 0 ] },
INCLUDE_PATH => $args{templates_dir} INCLUDE_PATH => $args{templates_dir}
}); });
unless ($tt2->process($tt2_file, $mail_data, \*SENDMAIL)) { unless ($tt2->process($tt2_file, $mail_data, \*SENDMAIL)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment