diff --git a/oc-includes/osclass/emails.php b/oc-includes/osclass/emails.php index 5696d7d99c..ac6a5ee636 100755 --- a/oc-includes/osclass/emails.php +++ b/oc-includes/osclass/emails.php @@ -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'); @@ -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 */ \ No newline at end of file