diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-06 11:15:01 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-06 11:15:01 +0100 |
commit | a6c11ec2e1fa29ffc28fed8fa0102f2fb9d61845 (patch) | |
tree | cdbdf8ce8688be284741d29b2f2c2b7950df4c9a /perllib/FixMyStreet/Map.pm | |
parent | cd0ff4b083042c7d9a14d369326c5247893416c5 (diff) |
Get rid of some more fake_q etc.
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r-- | perllib/FixMyStreet/Map.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm index 279f799e4..fc3f318c2 100644 --- a/perllib/FixMyStreet/Map.pm +++ b/perllib/FixMyStreet/Map.pm @@ -64,7 +64,7 @@ sub display_map { } sub map_features { - my ( $q, $lat, $lon, $interval ) = @_; + my ( $c, $lat, $lon, $interval ) = @_; # TODO - be smarter about calculating the surrounding square # use deltas that are roughly 500m in the UK - so we get a 1 sq km search box @@ -78,8 +78,7 @@ sub map_features { my $max_lon = $lon + $lon_delta; # list of problems around map can be limited, but should show all pins - my $around_limit # - = Cobrand::on_map_list_limit( Page::get_cobrand($q) ) || undef; + my $around_limit = $c->cobrand->on_map_list_limit || undef; my @around_args = ( $min_lat, $max_lat, $min_lon, $max_lon, $interval ); my $around_map_list = Problems::around_map( @around_args, $around_limit ); |