diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-03-05 22:51:20 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-03-05 22:51:20 +0000 |
commit | bd4e19804eb84b0a4aad3a573614e1ce1cc06564 (patch) | |
tree | bca0e5a2e04c1bee36873f688e7ebc3c25d1c114 /perllib/Page.pm | |
parent | 6ab524ffd5b698a4f2ba60427d8b340f73427ba5 (diff) |
Don't check coordsyst as not set for Norway; always string truncate lat/lon.
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r-- | perllib/Page.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm index ffe16fb9a..0aa06102d 100644 --- a/perllib/Page.pm +++ b/perllib/Page.pm @@ -672,6 +672,7 @@ sub mapit_check_error { return _('That postcode was not recognised, sorry.') if $location->{code} =~ /^4/; return $location->{error}; } + return if mySociety::Config::get('COUNTRY') eq 'NO'; my $island = $location->{coordsyst}; if (!$island) { return _("Sorry, that appears to be a Crown dependency postcode, which we don't cover."); |