diff options
author | Struan Donald <struan@exo.org.uk> | 2014-04-10 16:51:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-05-16 15:49:17 +0100 |
commit | eacd361ee298907b71cbf57b3b82cef98863d995 (patch) | |
tree | 86f2e803363aa8121045f71f67ecadd8baea7646 /perllib/FixMyStreet/DB/ResultSet/Problem.pm | |
parent | 2edcbe06b98e0f1daa11173477b7a90a57efcdbc (diff) |
Set site_name and signature email variables for alerts
so we can include the name of the site non TT templated emails
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index 5499af474..a7c1bebae 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -438,7 +438,7 @@ sub send_reports { lastupdate => \'ms_current_timestamp()', } ); if ( $cobrand->report_sent_confirmation_email && !$h{anonymous_report}) { - _send_report_sent_email( $row, \%h, $nomail ); + _send_report_sent_email( $row, \%h, $nomail, $cobrand ); } debug_print("send successful: OK", $row->id) if $debug_mode; } else { @@ -491,6 +491,7 @@ sub _send_report_sent_email { my $row = shift; my $h = shift; my $nomail = shift; + my $cobrand = shift; my $template = 'confirm_report_sent.txt'; my $template_path = FixMyStreet->path_to( "templates", "email", $row->cobrand, $row->lang, $template )->stringify; @@ -509,7 +510,8 @@ sub _send_report_sent_email { }, mySociety::Config::get('CONTACT_EMAIL'), [ $row->user->email ], - $nomail + $nomail, + $cobrand ); } |