fix width in task for creating preview

This commit is contained in:
Uwe Steinmann 2021-08-06 08:33:34 +02:00
parent 8bc9ab8f3c
commit 8b34c4f82e

View File

@ -410,7 +410,7 @@ class SeedDMS_Task_Preview_Process_Folder { /* {{{ */
}
$files = $document->getDocumentFiles();
foreach($files as $file) {
$this->previewer->createPreview($file, $width['detail'], $isnew);
$this->previewer->createPreview($file, $width, $isnew);
if($isnew){
$this->logger->log('Task \'preview\': created preview ('.$width.'px) for attachment of document '.$document->getId().':'.$file->getId(), PEAR_LOG_INFO);
}