aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/send-reports8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 3b7c51bc3..00d9f6b5b 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -160,10 +160,10 @@ while (my $row = $unsent->next) {
$template = 'submit.txt';
$template = 'submit-brent.txt' if $row->council eq 2488 || $row->council eq 2237;
- $template = FixMyStreet->path_to( "templates", "email", $cobrand->moniker, $template )->stringify;
- $template = FixMyStreet->path_to( "templates", "email", "default", $template )->stringify
- unless -e $template;
- $template = File::Slurp::read_file( $template );
+ my $template_path = FixMyStreet->path_to( "templates", "email", $cobrand->moniker, $template )->stringify;
+ $template_path = FixMyStreet->path_to( "templates", "email", "default", $template )->stringify
+ unless -e $template_path;
+ $template = File::Slurp::read_file( $template_path );
if ($h{category} eq _('Other')) {
$h{category_footer} = _('this type of local problem');