more formatting

This commit is contained in:
JT Smith 2007-01-17 17:05:59 +00:00
parent 214c393a27
commit b59b948bc1

View file

@ -687,13 +687,21 @@ SQL
attachmentLoop => do {
if ($post->get('storageId')) {
my $storage = $post->getStorageLocation;
[map {
({ 'attachment.url' => $storage->getUrl($_),
'attachment.path' => $storage->getPath($_),
'attachment.length' => $storage->getFileSize($_) })
} @{$storage->getFiles}]
} else { undef }
}
#returns this
[
map {
({
'attachment.url' => $storage->getUrl($_),
'attachment.path' => $storage->getPath($_),
'attachment.length' => $storage->getFileSize($_)
})
} @{$storage->getFiles}
]
}
else {
[]
}
}
})
} @postIds;
}