From 14b5897c18b9b24c5c081967ccd9eb5cafabe99d Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 29 Mar 2010 08:25:03 -0700 Subject: [PATCH] RSS links from Gallery need to include sitename. Fixes bug #11496 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Gallery.pm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f172ecf92..3e873a74f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,7 @@ - added #11412: Additional navigation in Gallery Photo View - added: Sort Items switch to Syndicated Content asset - fixed #11493: i18n AssetCalendar::pageNextUrl monthVar + - fixed #11496: No linkable RSS feeds from gallery 7.9.1 - fixed #11464: blank page after setting posts per page in Collaboration System to 0 (zero) diff --git a/lib/WebGUI/Asset/Wobject/Gallery.pm b/lib/WebGUI/Asset/Wobject/Gallery.pm index 8b24fe7d8..46070fe17 100644 --- a/lib/WebGUI/Asset/Wobject/Gallery.pm +++ b/lib/WebGUI/Asset/Wobject/Gallery.pm @@ -761,11 +761,12 @@ sub getRssFeedItems { perpage => $self->get('itemsPerFeed'), } ); - my $var = []; + my $var = []; + my $siteUrl = $self->session->url->getSiteURL(); for my $assetId ( @{ $p->getPageData } ) { my $asset = WebGUI::Asset::Wobject::GalleryAlbum->newPending( $self->session, $assetId ); push @{ $var }, { - 'link' => $asset->getUrl, + 'link' => $siteUrl . $asset->getUrl, 'guid' => $asset->{_properties}->{ 'assetId' }, 'title' => $asset->getTitle, 'description' => $asset->{_properties}->{ 'description' },