diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-09-04 14:42:46 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-09-04 14:42:46 +0100 |
commit | 77ae49afb00e1dc1bd528f179ac0b32512feae3d (patch) | |
tree | dc82b836344d9ef8cd2c462ee54aa1dd21f27ab2 /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | d6c6c05f4627c2b85f2ec867ff3b6c85f297e8cc (diff) | |
parent | 8544bafc365406ac9a403e80fe07cc361a7d1d5b (diff) |
Merge branch 'fix-cobrand-restriction-warning'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index b58b79937..b817fe326 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -264,11 +264,7 @@ sub add_row : Private { (my $link = $alert_type->item_link) =~ s/{{(.*?)}}/$row->{$1}/g; (my $desc = _($alert_type->item_description)) =~ s/{{(.*?)}}/$row->{$1}/g; - my $hashref_restriction = $c->cobrand->body_restriction; - my $base_url = $c->cobrand->base_url; - if ( $hashref_restriction && $row->{bodies_str} && $row->{bodies_str} ne $hashref_restriction ) { - $base_url = $c->config->{BASE_URL}; - } + my $base_url = $c->cobrand->base_url_for_report($row); my $url = $base_url . $link; my %item = ( |