aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
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?"