From: eileen Date: Mon, 6 Jun 2016 21:55:44 +0000 (-0600) Subject: CRM-18701 minor, tangental tidy up X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=46929486b3d6b22e9d660ae9f9194df8ae7326ee;p=civicrm-core.git CRM-18701 minor, tangental tidy up --- diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 10a7db09ed..8de80161bf 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1045,11 +1045,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } // Retrieve the name and email of the current user - this will be the FROM for the receipt email - $session = CRM_Core_Session::singleton(); - $userID = $session->get('userID'); - list($userName, - $userEmail - ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($userID); + $userName = CRM_Core_Session::singleton()->getLoggedInContactDisplayName(); if ($this->_contactId) { list($this->_contributorDisplayName, $this->_contributorEmail, $this->_toDoNotEmail) = CRM_Contact_BAO_Contact::getContactDetails($this->_contactId);