aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-14 09:47:56 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-14 09:47:56 +0100
commit815ce1e98c6024ec0ea4b2843981a00bfd88507e (patch)
treebf1dfb5152d837a3cd50e4aa66f590cc2f870c6c /perllib/FixMyStreet/App/Controller/Report/New.pm
parentee89cb7cf39e7c578955d6a1f9bdeefb20b8193c (diff)
Move country to cobrand rather than config option.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
1 files changed, 1 insertions, 1 deletions
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?"