aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-04 21:36:37 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-04 21:36:37 +0100
commit46d4a2a89d1a3e6baddd874263cd12dc5fb1353e (patch)
treeaf242d04d9d9f64b4c73aa2e570cda943a9e959a
parent76902d4e6e7f718b2bda84538d1a4bfe0922caa8 (diff)
Put assignment outside locale wrapper.
-rw-r--r--perllib/FixMyStreet/Alert.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Alert.pm b/perllib/FixMyStreet/Alert.pm
index a78d820a3..58a338432 100644
--- a/perllib/FixMyStreet/Alert.pm
+++ b/perllib/FixMyStreet/Alert.pm
@@ -189,8 +189,8 @@ sub email_alerts ($) {
my ($site_restriction, $site_id) = Cobrand::site_restriction($alert->{cobrand}, $alert->{cobrand_data});
my $d = mySociety::Gaze::get_radius_containing_population($latitude, $longitude, 200000);
# Convert integer to GB locale string (with a ".")
- mySociety::Locale::in_gb_locale {
- $d = sprintf("%f", int($d*10+0.5)/10);
+ $d = mySociety::Locale::in_gb_locale {
+ 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} );