mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Add new trigger points in comment.copyCommentByDocument to replace old, nonstandard "add" name
This commit is contained in:
parent
6e913fcb3a
commit
79808ee285
1 changed files with 2 additions and 0 deletions
|
|
@ -2153,10 +2153,12 @@ class CommentController extends Comment
|
|||
$args->source = $comment;
|
||||
$args->copied = $copy;
|
||||
ModuleHandler::triggerCall('comment.copyCommentByDocument', 'add', $args);
|
||||
ModuleHandler::triggerCall('comment.copyCommentByDocument.each', 'before', $args);
|
||||
|
||||
// insert a copied comment
|
||||
$this->insertComment($copy, true);
|
||||
|
||||
ModuleHandler::triggerCall('comment.copyCommentByDocument.each', 'after', $args);
|
||||
$copied_comments[$comment->comment_srl] = $copy->comment_srl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue