mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
create previews of attachments
This commit is contained in:
parent
813587e8c9
commit
7d34bd86b3
|
@ -321,12 +321,18 @@ class SeedDMS_Task_Preview_Process_Folder { /* {{{ */
|
||||||
if($this->previewer->createPreview($version, $width, $isnew)) {
|
if($this->previewer->createPreview($version, $width, $isnew)) {
|
||||||
if($isnew){
|
if($isnew){
|
||||||
$this->logger->log('Task \'preview\': created preview ('.$width.'px) for document '.$document->getId().':'.$version->getVersion(), PEAR_LOG_INFO);
|
$this->logger->log('Task \'preview\': created preview ('.$width.'px) for document '.$document->getId().':'.$version->getVersion(), PEAR_LOG_INFO);
|
||||||
echo "Preview ".$width."px for ".$document->getId().":".$version->getVersion()." created\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$files = $document->getDocumentFiles();
|
||||||
|
foreach($files as $file) {
|
||||||
|
$this->previewer->createPreview($file, $width['detail'], $isnew);
|
||||||
|
if($isnew){
|
||||||
|
$this->logger->log('Task \'preview\': created preview ('.$width.'px) for attachment of document '.$document->getId().':'.$file->getId(), PEAR_LOG_INFO);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user