callback removePreviews() muss return null

This commit is contained in:
Uwe Steinmann 2020-02-25 17:06:55 +01:00
parent 9696187a9a
commit c28a7dd081

View File

@ -61,15 +61,17 @@ if($settings->_enableFullSearch) {
$index = null;
}
/*
function removePreviews($arr, $document) {
$previewer = $arr[0];
$previewer->deleteDocumentPreviews($document);
return true;
return null;
}
require_once("SeedDMS/Preview.php");
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir);
$dms->addCallback('onPreRemoveDocument', 'removePreviews', array($previewer));
*/
/* Get the notify list before removing the folder
* Also inform the users/groups of the parent folder