From 889d95a77db67081127bc84a51059916dfcc4997 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 29 Jun 2011 09:45:03 +0100 Subject: Allow a hostname to set the map class. --- perllib/FixMyStreet/App.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App.pm') diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 47b290eff..a63ac1fb4 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -181,7 +181,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; } -- cgit v1.2.3 From d6d8dc4e0080e3184751cf381bbd14581c970c62 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 29 Jun 2011 09:59:49 +0100 Subject: Four week default session length. --- perllib/FixMyStreet/App.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perllib/FixMyStreet/App.pm') diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index a63ac1fb4..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' => { -- cgit v1.2.3