diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-15 14:37:33 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-15 14:37:33 +0000 |
commit | 641f32da21da935a1f00329d0fdb42867d17ba8a (patch) | |
tree | 3b87889579976afee05fe9a821158813fd7ff99d | |
parent | ac4c14159c7c5a06b7246bf3ec1b3a2d61fe50ba (diff) |
Google link only on GB.
-rwxr-xr-x | web/index.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web/index.cgi b/web/index.cgi index 50126d072..758ca8c50 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -1013,11 +1013,12 @@ sub display_problem { map { Utils::truncate_coordinate($_) } # ( $problem->{latitude}, $problem->{longitude} ); - my $map_links = - "<p id='sub_map_links'>" + my $map_links = ''; + $map_links = "<p id='sub_map_links'>" . "<a href=\"http://maps.google.co.uk/maps?output=embed&z=16&q=" . URI::Escape::uri_escape_utf8( $problem->{title} . ' - ' . $google_link ) - . "\@$short_lat,$short_lon\">View on Google Maps</a></p>"; + . "\@$short_lat,$short_lon\">View on Google Maps</a></p>" + if mySociety::Config::get('COUNTRY') eq 'GB'; my $banner; if ($q->{site} ne 'emptyhomes' && $problem->{state} eq 'confirmed' && $problem->{duration} > 8*7*24*60*60) { |