aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorlouise <louise>2009-12-17 15:15:21 +0000
committerlouise <louise>2009-12-17 15:15:21 +0000
commitab78cc1cfd9d722ff745842d533addccca9a1f7d (patch)
treede78b4e3e79dce506c0b87960bb4bd68e094d89b /web
parent38a3fd044462011a82b93f269a74618fe2f58046 (diff)
Use cobrand base_url method
Diffstat (limited to 'web')
-rwxr-xr-xweb/rss.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/rss.cgi b/web/rss.cgi
index be77a78a5..a2810aee8 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.37 2009-11-30 16:12:29 louise Exp $
+# $Id: rss.cgi,v 1.38 2009-12-17 15:15:21 louise Exp $
use strict;
use Error qw(:try);
@@ -66,12 +66,12 @@ sub rss_local_problems {
my $lat = $q->param('lat');
my $lon = $q->param('lon');
my $cobrand = Page::get_cobrand($q);
+ my $base = Cobrand::base_url($cobrand);
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 = 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 '';
} elsif ($x && $y) {
@@ -86,7 +86,6 @@ sub rss_local_problems {
$error = shift;
};
unless ($error) {
- my $base = mySociety::Config::get('BASE_URL');
print $q->redirect(-location => "$base/rss/$x/$y");
}
return '';