diff options
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/send-reports b/bin/send-reports index 2d5245269..ef3da8c46 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -27,7 +27,6 @@ use mySociety::Config; use mySociety::DBHandle qw(dbh); use mySociety::Email; use mySociety::EmailUtil; -use mySociety::GeoUtil; use mySociety::Locale; use mySociety::MaPit; use mySociety::Random qw(random_bytes); @@ -103,12 +102,7 @@ foreach my $row (@$unsent) { $h{easting_northing} = ''; if ( mySociety::Config::get('COUNTRY') eq 'GB' ) { - ( $h{easting}, $h{northing} ) = - mySociety::Locale::in_gb_locale { - mySociety::GeoUtil::wgs84_to_national_grid( - $h{latitude}, $h{longitude}, 'G' - ); - }; + ( $h{easting}, $h{northing} ) = Utils::convert_latlon_to_en( $h{latitude}, $h{longitude} ); # email templates don't have conditionals so we need to farmat this here $h{easting_northing} # |