diff options
Diffstat (limited to 'perllib/FixMyStreet/App')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index d90a46b32..0c26220e0 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -222,7 +222,7 @@ sub check_location_is_acceptable : Private { my $lon = $c->stash->{longitude}; # If in UK and we have a lat,lon coocdinate check it is in UK - if ( $lat && $c->config->{COUNTRY} eq 'GB' ) { + if ( $lat && $c->cobrand->country eq 'GB' ) { eval { Utils::convert_latlon_to_en( $lat, $lon ); }; if ($@) { $c->stash->{location_error} = diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 643e4bd8f..dfa45df55 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -156,7 +156,7 @@ sub report_import : Path('/import') { push @errors, 'Please enter a valid email'; } - if ( $latitude && $c->config->{COUNTRY} eq 'GB' ) { + if ( $latitude && $c->cobrand->country eq 'GB' ) { eval { Utils::convert_latlon_to_en( $latitude, $longitude ); }; push @errors, "We had a problem with the supplied co-ordinates - outside the UK?" |