diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-12-11 14:33:21 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-12-11 14:33:21 +0000 |
commit | 25e2c47f1b117555c36efe8ae2f6e51b4d43e782 (patch) | |
tree | 87931a505a74bc5946e60467ddcb153af474a9c6 /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | 31f05cc1363442fa59efd029904b775ea9fdf576 (diff) | |
parent | fccaeb5bddf034e7e3e35184e8e49748e3a77113 (diff) |
Merge branch 'rss-site-name'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index c418c92b3..55b3088e7 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -302,9 +302,8 @@ sub add_row : Private { $item{description} .= encode_entities("\n<br>$address") if $address; } - my $recipient_name = $c->cobrand->contact_name; $item{description} .= encode_entities("\n<br><a href='$url'>" . - sprintf(_("Report on %s"), $recipient_name) . "</a>"); + sprintf(_("Report on %s"), $c->stash->{site_name}) . "</a>"); if ($row->{latitude} || $row->{longitude}) { $item{georss} = { point => "$row->{latitude} $row->{longitude}" }; @@ -332,6 +331,7 @@ sub add_parameters : Private { foreach ( keys %{ $c->stash->{title_params} } ) { $row->{$_} = $c->stash->{title_params}->{$_}; } + $row->{SITE_NAME} = $c->stash->{site_name}; (my $title = _($alert_type->head_title)) =~ s/\{\{(.*?)}}/$row->{$1}/g; (my $link = $alert_type->head_link) =~ s/\{\{(.*?)}}/$row->{$1}/g; |