aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 47b290eff..90f1f24bc 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -51,8 +51,7 @@ __PACKAGE__->config(
'Plugin::Session' => { # Catalyst::Plugin::Session::Store::DBIC
dbic_class => 'DB::Session',
- expires => 3600 * 24 * 7 * 6, # 6 months
- cookie_expires => 0
+ expires => 3600 * 24 * 7 * 4, # 4 weeks
},
'Plugin::Authentication' => {
@@ -181,7 +180,8 @@ sub setup_request {
Memcached::set_namespace( FixMyStreet->config('BCI_DB_NAME') . ":" );
- FixMyStreet::Map::set_map_class( $c->request->param('map') );
+ my $map = $host =~ /^osm\./ ? 'OSM' : $c->req->param('map');
+ FixMyStreet::Map::set_map_class( $map );
return $c;
}