Permalink
Browse files

dont send mail when not active

  • Loading branch information...
dogmatic69 committed Jul 22, 2013
1 parent ba13ba3 commit 32631e8143e8001984a7893303542fe1f3e8f756
Showing with 4 additions and 0 deletions.
  1. +4 −0 Core/Comments/Lib/CommentsEvents.php
@@ -163,6 +163,10 @@ public function onUserProfile(Event $Event, array $user) {
* @param array $comment
*/
public function onNewCommentSaved(Event $Event, array $comment) {
if (!$comment['active']) {
return false;
}
list($plugin) = pluginSplit($comment['class']);
$comment['url'] = current(EventCore::trigger($Event->Handler, $plugin . '.slugUrl', array(
'data' => array(

0 comments on commit 32631e8

Please sign in to comment.