Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions oc-includes/osclass/emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,17 @@ function fn_email_comment_validated($aComment) {
'alt_body' => $body
);
osc_sendMail($emailParams);

if (osc_get_preference('notify_new_comment_user')) {
$aItem = array(
'authorName' => $aComment['s_author_name'],
'authorEmail' => $aComment['s_author_email'],
'body' => $aComment['s_body'],
'title' => $aComment['s_title'],
'id' => $aComment['fk_i_item_id']
);
fn_email_new_comment_user($aItem);
}
}
}
osc_add_hook('hook_email_comment_validated', 'fn_email_comment_validated');
Expand Down Expand Up @@ -1301,6 +1312,3 @@ function _osc_from_email_aux() {
$tmp = osc_mailserver_mail_from();
return !empty($tmp)?$tmp:osc_contact_email();
}


/* file end: ./oc-includes/osclass/emails.php */