aboutsummaryrefslogtreecommitdiffstats
path: root/web/rss.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'web/rss.cgi')
-rwxr-xr-xweb/rss.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/rss.cgi b/web/rss.cgi
index 90e83b69f..9a8996048 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.12 2007-06-16 20:05:52 matthew Exp $
+# $Id: rss.cgi,v 1.13 2007-06-16 21:55:42 matthew Exp $
use strict;
require 5.8.0;
@@ -45,6 +45,8 @@ sub main {
my $lon = $q->param('lon');
if (defined $lat && defined $lon) {
($x, $y) = mySociety::GeoUtil::wgs84_to_national_grid($lat, $lon, 'G');
+ $x = Page::os_to_tile($x);
+ $y = Page::os_to_tile($y);
}
}
die "Missing x/y or lat/lon parameter in RSS feed" if (!$x && !$y);