From 5d9ae3dba11fc6c72935a3c6bb34d20d6dabec04 Mon Sep 17 00:00:00 2001 From: Edmund von der Burg Date: Thu, 14 Apr 2011 17:45:00 +0100 Subject: Replace all $c->req with s->fake_q so that we isolate the old setup --- perllib/FixMyStreet/App/Controller/Around.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Around.pm') diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index 09f015055..19b2dbaf7 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -144,7 +144,7 @@ sub display_location : Private { # get the map features my ( $on_map_all, $on_map, $around_map, $distance ) = - FixMyStreet::Map::map_features( $c->req, $latitude, $longitude, + FixMyStreet::Map::map_features( $c->fake_q, $latitude, $longitude, $interval ); # copy the found reports to the stash @@ -188,7 +188,7 @@ sub display_location : Private { $map_links .= "

"; $c->stash->{map_html} = FixMyStreet::Map::display_map( - $c->req, + $c->fake_q, latitude => $latitude, longitude => $longitude, type => 1, @@ -249,7 +249,7 @@ sub determine_location_from_pc : Private { $c->stash->{pc} = $pc; # for template my ( $latitude, $longitude, $error ) = - eval { FixMyStreet::Geocode::lookup( $pc, $c->req ) }; + eval { FixMyStreet::Geocode::lookup( $pc, $c->fake_q ) }; # Check that nothing blew up if ($@) { -- cgit v1.2.3