aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-13 13:57:27 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-13 13:57:27 +0100
commiteb0afb86462032b1fd8a380a3d237c72602ade43 (patch)
tree1e15d0810c89a5af5efc5a5837042d8dfd6c8c4e
parent20138c0fa9805e8eb8cb1b413310242f1ac1f8cd (diff)
If no MAPIT_URL in config, default to the fake one.
-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;
}