aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet.pm
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-11-16 11:15:10 +0100
committerMarius Halden <marius.h@lden.org>2015-11-16 11:15:10 +0100
commit1339a64632c441e4d7858bd5946738c9840c624d (patch)
tree0b1393ca9af05d1af690fbf6c569c195f4136e4c /perllib/FixMyStreet.pm
parent17cc40a8a2387669984ae4a36bb0d30d889d1a07 (diff)
parent4fb5331abd2fa4c89ebeb89bc92a245fadd0aa19 (diff)
Merge branch 'fiksgatami-dev' into fiksgatami-prod
Oppgrader prod til 1.7
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