diff options
author | matthew <matthew> | 2009-09-24 21:27:47 +0000 |
---|---|---|
committer | matthew <matthew> | 2009-09-24 21:27:47 +0000 |
commit | bc6ad7062253c019cb4b458f0f2fdb7d93ab0947 (patch) | |
tree | 20c9373e0d516e58ba5c0270c21c441ff456e2bb | |
parent | 6ef02a4e9118ada590310371d94faf2f07fd802d (diff) |
Need integers.
-rwxr-xr-x | web/rss.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/rss.cgi b/web/rss.cgi index d49134718..cab7f29cf 100755 --- a/web/rss.cgi +++ b/web/rss.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: rss.cgi,v 1.30 2009-09-24 21:11:12 matthew Exp $ +# $Id: rss.cgi,v 1.31 2009-09-24 21:27:47 matthew Exp $ use strict; use Error qw(:try); @@ -64,8 +64,8 @@ sub rss_local_problems { my ($e, $n); if ($lat) { # In the UK, it'll never be 0 :) ($e, $n) = mySociety::GeoUtil::wgs84_to_national_grid($lat, $lon, 'G'); - $x = Page::os_to_tile($e); - $y = Page::os_to_tile($n); + $x = int(Page::os_to_tile($e)); + $y = int(Page::os_to_tile($n)); my $base = mySociety::Config::get('BASE_URL'); print $q->redirect(-location => "$base/rss/$x/$y"); return ''; |