delete preview images

This commit is contained in:
Uwe Steinmann 2016-04-26 12:12:13 +02:00
parent 8ee518e69b
commit 97e28a8fef

View File

@ -52,6 +52,11 @@ if($document->isLocked()) {
$folder = $document->getFolder();
/* Remove all preview images. */
require_once("SeedDMS/Preview.php");
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir);
$previewer->deleteDocumentPreviews($document);
/* Get the notify list before removing the document */
$dnl = $document->getNotifyList();
$fnl = $folder->getNotifyList();