diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-06 09:20:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-06 09:20:38 +0100 |
commit | 819a95ae17f59f1732379926f9738caeb9ff046b (patch) | |
tree | 743c52675d1738618557f46f853ac46dd8b8530f /bin/send-reports | |
parent | e26bc99396d3eaefc3fd7d81c010dc4028767690 (diff) | |
parent | b388fd0be5296426225089ed188b3c1cdd802415 (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/send-reports b/bin/send-reports index feee74c76..fbbd3db5e 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -192,14 +192,11 @@ while (my $row = $unsent->next) { die 'Report not going anywhere for ID ' . $row->id . '!'; } - my $testing_email = mySociety::Config::get('TESTING_EMAIL'); - if ($row->user->email eq $testing_email) { - @recips = ( $testing_email ); - $send_web = 0; - $send_email = 1; - } elsif (mySociety::Config::get('STAGING_SITE')) { + if (mySociety::Config::get('STAGING_SITE')) { # on a staging server send emails to ourselves rather than the councils @recips = ( mySociety::Config::get('CONTACT_EMAIL') ); + $send_web = 0; + $send_email = 1; } elsif ($site eq 'emptyhomes') { my $council = $row->council; my $country = $areas_info->{$council}->{country}; |