Index: branches/5.2.x/core/kernel/db/cat_dbitem.php =================================================================== diff -u -N -r15594 -r15608 --- branches/5.2.x/core/kernel/db/cat_dbitem.php (.../cat_dbitem.php) (revision 15594) +++ branches/5.2.x/core/kernel/db/cat_dbitem.php (.../cat_dbitem.php) (revision 15608) @@ -1,6 +1,6 @@ GetDBField($status_field) ) { // status was changed - $this->sendEmailEvents($new_status, $pending_editing); + $this->sendEmails($new_status, $pending_editing); } $this->SetDBField($status_field, $new_status); return $this->Update(); } - function sendEmailEvents($new_status, $pending_editing = false) + function sendEmails($new_status, $pending_editing = false) { $owner_field = $this->Application->getUnitOption($this->Prefix, 'OwnerField'); if (!$owner_field) { @@ -498,7 +498,7 @@ } $event_name .= $new_status == STATUS_ACTIVE ? '.APPROVE' : '.DENY'; - $this->Application->EmailEventUser($event_name, $this->GetDBField($owner_field)); + $this->Application->emailUser($event_name, $this->GetDBField($owner_field)); } /** @@ -551,7 +551,7 @@ $temp_handler->DeleteItems($this->Prefix, $this->Special, Array ($this->GetID())); - $this->sendEmailEvents(STATUS_DISABLED, true); + $this->sendEmails(STATUS_DISABLED, true); // original item is not changed here, because it is already enabled (thrus pending copy is visible to item's owner or admin with permission) return true; }