mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +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 */
|
/* Check if 'onPostRemoveDocument' callback is set */
|
||||||
if(isset($this->_dms->callbacks['onPostRemoveDocument'])) {
|
if(isset($this->_dms->callbacks['onPostRemoveDocument'])) {
|
||||||
foreach($this->_dms->callbacks['onPostRemoveDocument'] as $callback) {
|
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