aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-17 23:09:05 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-17 23:09:05 +0100
commit349b9f813f07da61ca117f49d1a3746979dffac8 (patch)
tree9661963edc9187063a97f8d4930c71bb17698e24 /perllib/FixMyStreet/App/Controller/Around.pm
parent5153ba514d7f4d8889ad55e8b1b7b18da63644d2 (diff)
Centralise UK location check to catch edge cases.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm14
1 files changed, 0 insertions, 14 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 0c26220e0..a49d796fc 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -217,20 +217,6 @@ and that they are in UK (if we are in UK).
sub check_location_is_acceptable : Private {
my ( $self, $c ) = @_;
- # These should be set now
- my $lat = $c->stash->{latitude};
- my $lon = $c->stash->{longitude};
-
- # If in UK and we have a lat,lon coocdinate check it is in UK
- if ( $lat && $c->cobrand->country eq 'GB' ) {
- eval { Utils::convert_latlon_to_en( $lat, $lon ); };
- if ($@) {
- $c->stash->{location_error} =
- _( "We had a problem with the supplied co-ordinates - outside the UK?" );
- return;
- }
- }
-
# check that there are councils that can accept this location
$c->stash->{council_check_action} = 'submit_problem';
$c->stash->{remove_redundant_councils} = 1;