diff options
author | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-08-02 11:36:02 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-08-02 11:36:02 +0100 |
commit | 7bbd05ddfffd81cbc183988194a86d6275b48cff (patch) | |
tree | 910d9c2ba98946da8520238d512c693e4f4bff2c /web/rss.cgi | |
parent | c2239ce7c633aec362b90ae6fc2cd33e5783358a (diff) |
Switch X/Y to be middle of map, clearer when going to RSS feed/alerts.
Diffstat (limited to 'web/rss.cgi')
-rwxr-xr-x | web/rss.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/rss.cgi b/web/rss.cgi index 7060d1709..44bb24be7 100755 --- a/web/rss.cgi +++ b/web/rss.cgi @@ -25,13 +25,13 @@ sub main { my $out; if ($type eq 'local_problems') { $out = rss_local_problems($q); - return unless $out; + return unless $out; } elsif ($type eq 'new_updates') { my $id = $q->param('id'); my $problem = Problems::fetch_problem($id); if (!$problem) { - print $q->header(-status=>'404 Not Found',-type=>'text/html'); - return; + print $q->header(-status=>'404 Not Found',-type=>'text/html'); + return; } my $qs = 'report/' . $id; $out = mySociety::Alert::generate_rss($type, $xsl, $qs, [$id], undef, $cobrand, $q); @@ -72,8 +72,8 @@ sub rss_local_problems { ($e, $n) = mySociety::GeoUtil::wgs84_to_national_grid($lat, $lon, 'G'); $x = int(Page::os_to_tile($e)); $y = int(Page::os_to_tile($n)); - print $q->redirect(-location => "$base/rss/$x/$y"); - return ''; + print $q->redirect(-location => "$base/rss/$x/$y"); + return ''; } elsif ($x && $y) { $e = Page::tile_to_os($x); $n = Page::tile_to_os($y); |