aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Email.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-12-02 18:05:08 +0000
committerMatthew Somerville <matthew@mysociety.org>2015-12-02 18:05:08 +0000
commit0c9e00d52568843b1f4c3e8b02b9e47eccceb6ea (patch)
tree701e1c2a1ad556df31f56f43f3ff4099a9ddc7d7 /perllib/FixMyStreet/Email.pm
parentb6fcd966d204d35c149b2bff91513e732f3101c8 (diff)
Pass in EmailSend arguments as a hashref.
A fix to bb1e797; when started via a Catalyst model, e.g. send_email in FixMyStreet::App, an empty hashref is passed in.
Diffstat (limited to 'perllib/FixMyStreet/Email.pm')
-rw-r--r--perllib/FixMyStreet/Email.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Email.pm b/perllib/FixMyStreet/Email.pm
index a65a5e340..e81067da1 100644
--- a/perllib/FixMyStreet/Email.pm
+++ b/perllib/FixMyStreet/Email.pm
@@ -91,7 +91,7 @@ sub send_cron {
if (!FixMyStreet->test_mode && $env_from eq FixMyStreet->config('CONTACT_EMAIL')) {
$model_args{mailer} = 'FixMyStreet::EmailSend::ContactEmail';
}
- my $result = FixMyStreet::EmailSend->new(%model_args)->send($email);
+ my $result = FixMyStreet::EmailSend->new(\%model_args)->send($email);
return $result ? 0 : 1;
}
}