diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
commit | 7da8f20c36726fd205ae48130f07db49fab745e0 (patch) | |
tree | 9573ce8c11fd8a067ad74a1aedb452784654b076 /web/ajax.cgi | |
parent | 36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff) | |
parent | a88db262384d3800c36589bb6d1a933b9319e2df (diff) |
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 'web/ajax.cgi')
-rwxr-xr-x | web/ajax.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi index 69c389765..f13529852 100755 --- a/web/ajax.cgi +++ b/web/ajax.cgi @@ -59,8 +59,8 @@ sub main { $list = ''; foreach (@$around_map) { - my $dist = int($_->{distance}/100+.5)/10; - $link = Cobrand::url($cobrand, NewURL($q, -retain => 1, + my $dist = int($_->{distance}*10+.5)/10; + $link = Cobrand::url($cobrand, NewURL($q, -retain => 1, -url => '/report/' . $_->{id}, pc => undef, x => undef, @@ -81,7 +81,7 @@ sub main { #$list = ''; #foreach (@$fixed) { # $list .= '<li><a href="/report/' . $_->{id} . '">'; - # $list .= $_->{title} . ' <small>(' . int($_->{distance}/100+.5)/10 . 'km)</small>'; + # $list .= $_->{title} . ' <small>(' . int($_->{distance}*10+.5)/10 . 'km)</small>'; # $list .= '</a></li>'; #} #my $f_list = $list; |