mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-07 07:34:58 +00:00
pass propper parameter to hook cleanUpDocument
This commit is contained in:
parent
964bed081d
commit
f5db14dd74
|
@ -795,7 +795,7 @@ class RestapiController { /* {{{ */
|
||||||
return $response->withJson(array('success'=>false, 'message'=>'Upload failed', 'data'=>''), 500);
|
return $response->withJson(array('success'=>false, 'message'=>'Upload failed', 'data'=>''), 500);
|
||||||
} else {
|
} else {
|
||||||
if($controller->hasHook('cleanUpDocument')) {
|
if($controller->hasHook('cleanUpDocument')) {
|
||||||
$controller->callHook('cleanUpDocument', $document, $file);
|
$controller->callHook('cleanUpDocument', $document, ['ѕource'=>'restapi', 'type'=>$userfiletype, 'name'=>$origfilename]);
|
||||||
}
|
}
|
||||||
// Send notification to subscribers of folder.
|
// Send notification to subscribers of folder.
|
||||||
if($notifier) {
|
if($notifier) {
|
||||||
|
@ -967,7 +967,7 @@ class RestapiController { /* {{{ */
|
||||||
} else {
|
} else {
|
||||||
unlink($temp);
|
unlink($temp);
|
||||||
if($controller->hasHook('cleanUpDocument')) {
|
if($controller->hasHook('cleanUpDocument')) {
|
||||||
$controller->callHook('cleanUpDocument', $document, $file_info);
|
$controller->callHook('cleanUpDocument', $document, ['ѕource'=>'restapi', 'type'=>$userfiletype, 'name'=>$origfilename]);
|
||||||
}
|
}
|
||||||
// Send notification to subscribers.
|
// Send notification to subscribers.
|
||||||
if($notifier) {
|
if($notifier) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user