diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-09-22 16:12:40 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-02-15 17:27:29 +0000 |
commit | 34795d026faf45b0a1bfc103362eb118766c46d7 (patch) | |
tree | fc43f5c09c7b4bfe033d99ff3380cb5bcdc771b4 /perllib/FixMyStreet/SendReport/Email.pm | |
parent | 54af489f0fe985dfc433f0b8a3ab226a470a6023 (diff) |
Add cobrand call_hook fn, calls a fn if defined.
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Email.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index 4cee58d42..5a287a208 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -84,7 +84,7 @@ sub send { From => $self->send_from( $row ), }; - $cobrand->munge_sendreport_params($row, $h, $params) if $cobrand->can('munge_sendreport_params'); + $cobrand->call_hook(munge_sendreport_params => $row, $h, $params); $params->{Bcc} = $self->bcc if @{$self->bcc}; |