summaryrefslogtreecommitdiff
path: root/app/Model/CommentModel.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-20 21:47:23 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-20 21:47:23 -0400
commit3dd20c9c78e61028a4c7db232c7b2b30662a2987 (patch)
tree74f07dac8b8a41d2834e38f239f5527d5f455650 /app/Model/CommentModel.php
parent7b100cc57b58a1ef5c2c6cef28904e1ba79f0c49 (diff)
Rename CommentModel::EVENT_REMOVE to CommentModel::EVENT_DELETE
Diffstat (limited to 'app/Model/CommentModel.php')
-rw-r--r--app/Model/CommentModel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/CommentModel.php b/app/Model/CommentModel.php
index 6b983858..a9e48bd3 100644
--- a/app/Model/CommentModel.php
+++ b/app/Model/CommentModel.php
@@ -26,7 +26,7 @@ class CommentModel extends Base
*/
const EVENT_UPDATE = 'comment.update';
const EVENT_CREATE = 'comment.create';
- const EVENT_REMOVE = 'comment.remove';
+ const EVENT_DELETE = 'comment.delete';
const EVENT_USER_MENTION = 'comment.user.mention';
/**
@@ -166,7 +166,7 @@ class CommentModel extends Base
*/
public function remove($comment_id)
{
- $this->commentEventJob->execute($comment_id, self::EVENT_REMOVE);
+ $this->commentEventJob->execute($comment_id, self::EVENT_DELETE);
return $this->db->table(self::TABLE)->eq('id', $comment_id)->remove();
}
}