aboutsummaryrefslogtreecommitdiffstats
path: root/web/ajax.cgi
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-22 14:25:17 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-22 14:25:17 +0000
commit7da8f20c36726fd205ae48130f07db49fab745e0 (patch)
tree9573ce8c11fd8a067ad74a1aedb452784654b076 /web/ajax.cgi
parent36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff)
parenta88db262384d3800c36589bb6d1a933b9319e2df (diff)
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 'web/ajax.cgi')
-rwxr-xr-xweb/ajax.cgi6
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;