aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-13 10:48:04 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-13 10:48:04 +0100
commitefcb1f3c4a165b3fd3f9fc2d033303eea9ca74cb (patch)
tree1135e351b3fcf589b6bc8c6ad44c9378508b58b8
parent99496178acf7ac73d0cc1662d2b8ea4640feede4 (diff)
Don't reuse variable.
-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');