diff options
author | Marius Halden <marius.h@lden.org> | 2016-06-11 14:12:04 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-06-11 14:12:04 +0200 |
commit | 1307e0674c8b0174f71b960785230c647320885c (patch) | |
tree | 305f74ebeaba78a01f1c0d919e8180941a3ee63d /perllib/FixMyStreet/Script/Reports.pm | |
parent | 05310eb3ace46ab71d8d426359f17f5beeb7c115 (diff) | |
parent | 35e58052f4f1250a3c1bb40d126e36fcc735d209 (diff) |
Merge tag 'v1.8.3' into fiksgatami-dev
Diffstat (limited to 'perllib/FixMyStreet/Script/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/Script/Reports.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm index 75111b852..278c58af1 100644 --- a/perllib/FixMyStreet/Script/Reports.pm +++ b/perllib/FixMyStreet/Script/Reports.pm @@ -289,19 +289,18 @@ sub _send_report_sent_email { my $nomail = shift; my $cobrand = shift; - my $template = FixMyStreet->get_email_template($row->cobrand, $row->lang, 'confirm_report_sent.txt'); - FixMyStreet::Email::send_cron( $row->result_source->schema, + 'confirm_report_sent.txt', + $h, { - _template_ => $template, - _parameters_ => $h, To => $row->user->email, From => [ FixMyStreet->config('CONTACT_EMAIL'), $cobrand->contact_name ], }, FixMyStreet->config('CONTACT_EMAIL'), $nomail, - $cobrand + $cobrand, + $row->lang, ); } |