aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-05-07 15:30:14 +0100
committerDave Arter <davea@mysociety.org>2015-10-06 09:09:25 +0100
commit7480ba512f4e88dcc08f50ec890c36141d0f44aa (patch)
treedb620c1b47698b8e3d308a25c02fe47543b66a29 /perllib/FixMyStreet.pm
parent319b49f0206fda26d7cf0fdc71eed6c4195594ae (diff)
Allow MAP_TYPE to be overridden by tests
Diffstat (limited to 'perllib/FixMyStreet.pm')
-rw-r--r--perllib/FixMyStreet.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm
index 76760b967..76befb96a 100644
--- a/perllib/FixMyStreet.pm
+++ b/perllib/FixMyStreet.pm
@@ -124,11 +124,14 @@ sub override_config($&) {
}
);
+ FixMyStreet::Map::reload_allowed_maps() if $config->{MAP_TYPE};
+
$code->();
$override_guard1->restore();
$override_guard2->restore();
- mySociety::MaPit::configure() if $config->{MAPIT_URL};;
+ mySociety::MaPit::configure() if $config->{MAPIT_URL};
+ FixMyStreet::Map::reload_allowed_maps() if $config->{MAP_TYPE};
}
=head2 dbic_connect_info