Fixed a bug with RSS feed generation and attachments.
This commit is contained in:
parent
d5b79ae217
commit
2c7f49be9a
5 changed files with 5 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue