aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Alert.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Alert.pm')
-rw-r--r--perllib/FixMyStreet/Alert.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Alert.pm b/perllib/FixMyStreet/Alert.pm
index 15981acc5..a78d820a3 100644
--- a/perllib/FixMyStreet/Alert.pm
+++ b/perllib/FixMyStreet/Alert.pm
@@ -188,7 +188,10 @@ sub email_alerts ($) {
$url = Cobrand::base_url_for_emails($alert->{cobrand}, $alert->{cobrand_data});
my ($site_restriction, $site_id) = Cobrand::site_restriction($alert->{cobrand}, $alert->{cobrand_data});
my $d = mySociety::Gaze::get_radius_containing_population($latitude, $longitude, 200000);
- $d = int($d*10+0.5)/10;
+ # Convert integer to GB locale string (with a ".")
+ mySociety::Locale::in_gb_locale {
+ $d = sprintf("%f", int($d*10+0.5)/10);
+ };
my $testing_email_clause = "and problem.email <> '$testing_email'" if $testing_email;
my %data = ( template => $template, data => '', alert_id => $alert->{id}, alert_email => $alert->{email}, lang => $alert->{lang}, cobrand => $alert->{cobrand}, cobrand_data => $alert->{cobrand_data} );
my $q = "select * from problem_find_nearby(?, ?, ?) as nearby, problem