mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 22:47:19 +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;
|
$index = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
function removePreviews($arr, $document) {
|
function removePreviews($arr, $document) {
|
||||||
$previewer = $arr[0];
|
$previewer = $arr[0];
|
||||||
|
|
||||||
$previewer->deleteDocumentPreviews($document);
|
$previewer->deleteDocumentPreviews($document);
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
require_once("SeedDMS/Preview.php");
|
require_once("SeedDMS/Preview.php");
|
||||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir);
|
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir);
|
||||||
$dms->addCallback('onPreRemoveDocument', 'removePreviews', array($previewer));
|
$dms->addCallback('onPreRemoveDocument', 'removePreviews', array($previewer));
|
||||||
|
*/
|
||||||
|
|
||||||
/* Get the notify list before removing the folder
|
/* Get the notify list before removing the folder
|
||||||
* Also inform the users/groups of the parent folder
|
* Also inform the users/groups of the parent folder
|
||||||
|
|
Loading…
Reference in New Issue
Block a user