Index: branches/5.3.x/core/kernel/event_manager.php =================================================================== diff -u -N -r15677 -r15698 --- branches/5.3.x/core/kernel/event_manager.php (.../event_manager.php) (revision 15677) +++ branches/5.3.x/core/kernel/event_manager.php (.../event_manager.php) (revision 15698) @@ -1,6 +1,6 @@ Conn->nextQueryCachable = true; $sql = 'SELECT TemplateId, TemplateName, Type, BindToSystemEvent - FROM ' . $this->Application->getUnitOption('email-template', 'TableName') . ' + FROM ' . $this->Application->getUnitConfig('email-template')->getTableName() . ' WHERE BindToSystemEvent <> ""'; $event_mapping = $this->Conn->Query($sql, 'BindToSystemEvent'); @@ -336,7 +336,7 @@ if ( $object->isLoaded() ) { $item_id = $object->GetID(); - $parent_prefix = $this->Application->getUnitOption($event->Prefix, 'ParentPrefix'); + $parent_prefix = $event->getUnitConfig()->getParentPrefix(); if ( $parent_prefix ) { $parent_item_id = $object->getParentId($parent_prefix);