diff options
author | Marius Halden <marius.h@lden.org> | 2016-06-11 14:12:04 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-06-11 14:12:04 +0200 |
commit | 1307e0674c8b0174f71b960785230c647320885c (patch) | |
tree | 305f74ebeaba78a01f1c0d919e8180941a3ee63d /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | 05310eb3ace46ab71d8d426359f17f5beeb7c115 (diff) | |
parent | 35e58052f4f1250a3c1bb40d126e36fcc735d209 (diff) |
Merge tag 'v1.8.3' into fiksgatami-dev
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index 8d4f8313c..183b233a8 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -8,7 +8,7 @@ use XML::RSS; use FixMyStreet::App::Model::PhotoSet; -use mySociety::Gaze; +use FixMyStreet::Gaze; use mySociety::Locale; use mySociety::MaPit; use mySociety::Sundries qw(ordinal); @@ -143,10 +143,10 @@ sub local_problems_ll : Private { $c->stash->{qs} .= ";d=$d"; $d = 100 if $d > 100; } else { - $d = mySociety::Gaze::get_radius_containing_population( $lat, $lon, 200000 ); - $d = int( $d * 10 + 0.5 ) / 10; - mySociety::Locale::in_gb_locale { - $d = sprintf("%f", $d); + $d = FixMyStreet::Gaze::get_radius_containing_population($lat, $lon); + # Needs to be with a '.' for db passing + $d = mySociety::Locale::in_gb_locale { + sprintf("%f", $d); } } |