Index: branches/5.3.x/units/posts/post_eh.php =================================================================== diff -u -N -r15924 -r15935 --- branches/5.3.x/units/posts/post_eh.php (.../post_eh.php) (revision 15924) +++ branches/5.3.x/units/posts/post_eh.php (.../post_eh.php) (revision 15935) @@ -1,6 +1,6 @@ Application->emailAdmin('POST.MODIFY'); + $object = $event->getObject(); + /* @var $object kDBItem */ + + $this->Application->emailAdmin('POST.MODIFY', null, $object->getEmailParams()); } /** @@ -235,17 +238,19 @@ // don't send any email events when in admin OR new topic just added (0 posts) $user_notified = false; // don't send POST.ADD event twice to same user (in case if owner adds new post) + $send_params = $object->getEmailParams(); + if ( $main_object->GetDBField('NotifyOwnerOnChanges') ) { $user_notified = $main_object->GetDBField('OwnerId'); - $this->Application->emailUser('POST.ADD', $user_notified); + $this->Application->emailUser('POST.ADD', $user_notified, $send_params); } $post_owner_id = $object->GetDBField('CreatedById'); if ( ($post_owner_id > 0) && ($user_notified != $post_owner_id) ) { - $this->Application->emailUser('POST.ADD', $post_owner_id); + $this->Application->emailUser('POST.ADD', $post_owner_id, $send_params); } - $this->Application->emailAdmin('POST.ADD'); + $this->Application->emailAdmin('POST.ADD', null, $send_params); } $post_helper->updateTodayPostsCount($main_object, $object->GetDBField('CreatedOn'), +1);