aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 9553aafa2..0adf66ee9 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -183,6 +183,10 @@ sub setup_request {
FixMyStreet::Map::set_map_class( $cobrand->map_type || $c->req->param('map_override') );
+ unless ( FixMyStreet->config('MAPIT_URL') ) {
+ mySociety::MaPit::configure( "http://$host/fakemapit/" );
+ }
+
return $c;
}