Event Manager with Site Notification enabled...

Team,

I just noticed that when enabling the Site notification, Event Manager Notification seems to be broken. When enabled, the From field of the site message (inside Elgg Inbox) is sent as: From: "messages/compose?send_to=2448" instead of the actual user/owner. The email is sent correctly though... Anyone who can shed some light on this please?

 

I digged up the event.php code as:

 

// notify the owner of the event
$owner_subject = elgg_echo('event_manager:event:registration:notification:owner:subject');

$owner_message = elgg_echo('event_manager:event:registration:notification:owner:text:' . $type, array(
$this->getOwnerEntity()->name,
$to_entity->name,
$event_title_link));

$owner_message .= $registrationLink;

notify_user($this->getOwnerGUID(), $this->getGUID(), $owner_subject, $owner_message);

 

and somwhere on the From field:

 

if ($to_entity instanceof ElggUser) {
// use notification system for real users
notify_user($to, $this->getGUID(), $user_subject, $user_message);
} else {
// send e-mail for non users
$to_email = $to_entity->name . "<" . $to_entity->email . ">";

$site = elgg_get_site_entity($this->site_guid);
if ($site->email){
if ($site->name) {
$site_from = $site->name . " <" . $site->email . ">";
} else {
$site_from = $site->email;
}
} else {
// no site email, so make one up
if ($site->name) {
$site_from = $site->name . " <noreply@" . get_site_domain($site->getGUID()) . ">";
} else {
$site_from = "noreply@" . get_site_domain($site->getGUID());
}
}

elgg_send_email($site_from, $to_email, $user_subject, $user_message);
}
}

 

 

not sure what's wrong....