diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 6 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 4 |
2 files changed, 5 insertions, 5 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 ($@) { diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index f5def5d96..b21596ef1 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -419,7 +419,7 @@ sub determine_location_from_tile_click : Private { # convert the click to lat and lng my ( $latitude, $longitude ) = FixMyStreet::Map::click_to_wgs84( # - $c->req, # + $c->fake_q, # $pin_tile_x, $pin_x, $pin_tile_y, $pin_y ); @@ -1046,7 +1046,7 @@ END_MAP_HTML my $map_type = $allow_photo_upload ? 2 : 1; $c->stash->{map_html} = FixMyStreet::Map::display_map( - $c->req, + $c->fake_q, latitude => $latitude, longitude => $longitude, type => $map_type, |