diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-04-14 17:45:00 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-04-14 17:45:00 +0100 |
commit | 5d9ae3dba11fc6c72935a3c6bb34d20d6dabec04 (patch) | |
tree | 61fd4340c256e76bbd8247bec0d6985da0c1b61d /perllib/FixMyStreet/App/Controller/Around.pm | |
parent | 8c9570ed848af6a2967e6dbb5232a3a444b7e399 (diff) |
Replace all $c->req with s->fake_q so that we isolate the old setup
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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 .= "</p>"; $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 ($@) { |