diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-16 19:28:37 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-16 19:28:37 +0000 |
commit | 7795e8884f7ca313e44aec7983d511a21a3ee524 (patch) | |
tree | ffb3dbcefea50db01befd4e6c0a37014b4925288 /web/index.cgi | |
parent | befd99b8e4ae3d2f60761dc9c658f3b6d6576054 (diff) |
Alert page working, and dealing with Oslo being both kommune and fylke.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-x | web/index.cgi | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/web/index.cgi b/web/index.cgi index 189231682..7c8ecaded 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -528,11 +528,19 @@ sub display_form { return front_page($q, $error_msg); } - # Ipswich & St Edmundsbury are responsible for everything in their areas, not Suffolk - delete $all_councils->{2241} if $all_councils->{2446} || $all_councils->{2443}; + if (mySociety::Config::get('COUNTRY') eq 'GB') { + # Ipswich & St Edmundsbury are responsible for everything in their areas, not Suffolk + delete $all_councils->{2241} if $all_councils->{2446} || $all_councils->{2443}; - # Norwich is responsible for everything in its areas, not Norfolk - delete $all_councils->{2233} if $all_councils->{2391}; + # Norwich is responsible for everything in its areas, not Norfolk + delete $all_councils->{2233} if $all_councils->{2391}; + + } elsif (mySociety::Config::get('COUNTRY') eq 'NO') { + + # Oslo is both a kommune and a fylke, we only want to show it once + delete $all_councils->{301} if $all_councils->{3}; + + } return display_location($q, _('That spot does not appear to be covered by a council. If you have tried to report an issue past the shoreline, for example, |