diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-13 10:48:04 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-13 10:48:04 +0100 |
commit | efcb1f3c4a165b3fd3f9fc2d033303eea9ca74cb (patch) | |
tree | 1135e351b3fcf589b6bc8c6ad44c9378508b58b8 /bin/send-reports | |
parent | 99496178acf7ac73d0cc1662d2b8ea4640feede4 (diff) |
Don't reuse variable.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 8 |
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'); |