diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-07-13 13:57:27 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-07-13 13:57:27 +0100 |
commit | eb0afb86462032b1fd8a380a3d237c72602ade43 (patch) | |
tree | 1e15d0810c89a5af5efc5a5837042d8dfd6c8c4e | |
parent | 20138c0fa9805e8eb8cb1b413310242f1ac1f8cd (diff) |
If no MAPIT_URL in config, default to the fake one.
-rw-r--r-- | perllib/FixMyStreet/App.pm | 4 |
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; } |