fixed: Collaboration System attachments follow site's max size instead of CS's

This commit is contained in:
Graham Knop 2008-03-27 19:15:51 +00:00
parent 1c589b5ee8
commit 308671edd0
3 changed files with 6 additions and 6 deletions

View file

@ -845,7 +845,7 @@ sub postProcess {
my $storage = $self->getStorageLocation;
foreach my $file (@{$storage->getFiles}) {
if ($storage->isImage($file)) {
$storage->adjustMaxImageSize($file);
$storage->adjustMaxImageSize($file, $self->getThread->getParent->get('maxImageSize'));
$storage->generateThumbnail($file, $self->getThread->getParent->get("thumbnailSize"));
}
$size += $storage->getFileSize($file);