mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
pass document itself to callback onPostRemoveDocument
This commit is contained in:
parent
233e464692
commit
0f5b189838
|
@ -2502,7 +2502,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
/* Check if 'onPostRemoveDocument' callback is set */
|
||||
if(isset($this->_dms->callbacks['onPostRemoveDocument'])) {
|
||||
foreach($this->_dms->callbacks['onPostRemoveDocument'] as $callback) {
|
||||
if(!call_user_func($callback[0], $callback[1], $this->_id)) {
|
||||
if(!call_user_func($callback[0], $callback[1], $this)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user