From ffed78df5a429f553aeb41dcc1061914e7c5de8d Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 7 Dec 2005 22:44:49 +0000 Subject: [PATCH] finished debugging CS RSS changes --- lib/WebGUI/Asset/Wobject/Collaboration.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Collaboration.pm b/lib/WebGUI/Asset/Wobject/Collaboration.pm index 477347afa..ab8652a86 100644 --- a/lib/WebGUI/Asset/Wobject/Collaboration.pm +++ b/lib/WebGUI/Asset/Wobject/Collaboration.pm @@ -1197,9 +1197,9 @@ sub www_viewRSS { my $encUrl = _xml_encode(WebGUI::URL::getSiteURL().$post->getUrl); my @attachmentLoop = (); - unless ($self->get("storageId") eq "") { - my $storage = $self->getStorageLocation; - foreach my $filename (@{ $storage->getFile }) { + unless ($post->get("storageId") eq "") { + my $storage = $post->getStorageLocation; + foreach my $filename (@{ $storage->getFiles }) { push @attachmentLoop, { 'attachment.url' => $storage->getUrl($filename), 'attachment.path' => $storage->getPath($filename), @@ -1221,7 +1221,9 @@ sub www_viewRSS { } WebGUI::HTTP::setMimeType("text/xml"); - return $self->processTemplate(\%var,$self->get("rssTemplateId")); + my $output = $self->processTemplate(\%var,$self->get("rssTemplateId")); + WebGUI::Macro::process(\$output); + return $output; }