aboutsummaryrefslogtreecommitdiffstats
path: root/web/ajax.cgi
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@dracos.co.uk>2011-03-25 15:25:06 +0000
committerMatthew Somerville <matthew@dracos.co.uk>2011-03-25 15:25:06 +0000
commitf931e2f7146ee271807315a9830c71afc8ad6eb5 (patch)
tree042b0fd56636fdefde655b2e5d62d210a3d4776f /web/ajax.cgi
parent71c4b7a598c6b0b441eef63b1e1e016bd45e9991 (diff)
parent8db1506fb88902e70350d15ba9484180c9d9b3bb (diff)
Merge branch 'master' into reportemptyhomes
Conflicts: web/css/cobrands/emptyhomes/emptyhomes.css
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;