@@ 884-894 (lines=11) @@ | ||
881 | } |
|
882 | ||
883 | // call a trigger (after) |
|
884 | if($output->toBool()) |
|
885 | { |
|
886 | $comment->isMoveToTrash = $isMoveToTrash; |
|
887 | $trigger_output = ModuleHandler::triggerCall('comment.deleteComment', 'after', $comment); |
|
888 | if(!$trigger_output->toBool()) |
|
889 | { |
|
890 | $oDB->rollback(); |
|
891 | return $trigger_output; |
|
892 | } |
|
893 | unset($comment->isMoveToTrash); |
|
894 | } |
|
895 | ||
896 | if(!$isMoveToTrash) |
|
897 | { |
@@ 654-663 (lines=10) @@ | ||
651 | ||
652 | //this |
|
653 | // Call a trigger (after) |
|
654 | if($output->toBool()) |
|
655 | { |
|
656 | $trigger_obj = $oDocument->getObjectVars(); |
|
657 | $trigger_output = ModuleHandler::triggerCall('document.deleteDocument', 'after', $trigger_obj); |
|
658 | if(!$trigger_output->toBool()) |
|
659 | { |
|
660 | $oDB->rollback(); |
|
661 | return $trigger_output; |
|
662 | } |
|
663 | } |
|
664 | // declared document, log delete |
|
665 | $this->_deleteDeclaredDocuments($args); |
|
666 | $this->_deleteDocumentReadedLog($args); |