Index: branches/5.3.x/units/posts/post_eh.php =================================================================== diff -u -N -r15490 -r15670 --- branches/5.3.x/units/posts/post_eh.php (.../post_eh.php) (revision 15490) +++ branches/5.3.x/units/posts/post_eh.php (.../post_eh.php) (revision 15670) @@ -1,6 +1,6 @@ SetDBField('Modified_date', $now); $object->SetDBField('Modified_time', $now); - $object->SetDBField('IPAddress', $_SERVER['REMOTE_ADDR']); + $object->SetDBField('IPAddress', $this->Application->getClientIp()); $sql = 'SELECT Username FROM ' . TABLE_PREFIX . 'Users @@ -154,7 +154,7 @@ { parent::OnAfterItemUpdate($event); - $this->Application->EmailEventAdmin('POST.MODIFY'); + $this->Application->emailAdmin('POST.MODIFY'); } /** @@ -237,15 +237,15 @@ $user_notified = false; // don't send POST.ADD event twice to same user (in case if owner adds new post) if ( $main_object->GetDBField('NotifyOwnerOnChanges') ) { $user_notified = $main_object->GetDBField('OwnerId'); - $this->Application->EmailEventUser('POST.ADD', $user_notified); + $this->Application->emailUser('POST.ADD', $user_notified); } $post_owner_id = $object->GetDBField('CreatedById'); if ( ($post_owner_id > 0) && ($user_notified != $post_owner_id) ) { - $this->Application->EmailEventUser('POST.ADD', $post_owner_id); + $this->Application->emailUser('POST.ADD', $post_owner_id); } - $this->Application->EmailEventAdmin('POST.ADD'); + $this->Application->emailAdmin('POST.ADD'); } $post_helper->updateTodayPostsCount($main_object, $object->GetDBField('CreatedOn'), +1);