mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
callback removePreviews() muss return null
This commit is contained in:
parent
9696187a9a
commit
c28a7dd081
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user