Fixed a bug with RSS feed generation and attachments.

This commit is contained in:
JT Smith 2007-01-17 18:24:15 +00:00
parent d5b79ae217
commit 2c7f49be9a
5 changed files with 5 additions and 20 deletions

View file

@ -708,24 +708,6 @@ SQL
return @posts;
}
#-------------------------------------------------------------------
sub getRssItemsAttachments {
my $self = shift;
my $post = shift;
if ($post->get('storageId')) {
my $storage = $post->getStorageLocation;
my @attachments = map {
{
'attachment.url' => $storage->getUrl($_),
'attachment.path' => $storage->getPath($_),
'attachment.length' => $storage->getFileSize($_)
}
} @{$storage->getFiles};
return \@attachments;
}
return [];
}
#-------------------------------------------------------------------
sub getEditTabs {
my $self = shift;

View file

@ -47,7 +47,6 @@ This package provides miscellaneous but useful utilities to the WebGUI programme
$string = makeCommaSafe($string);
$string = makeTabSafe($string);
$integer = randint($low,$high);
randomizeArray(\@array);
$hashRef = randomizeHash(\%hash);
%hash = sortHash(%hash);
%hash = sortHashDescending(%hash);