From: eileen Date: Wed, 7 Aug 2019 07:20:22 +0000 (+1200) Subject: Switch to helper function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e1a29ba154ef824518f6a2448fc24740b7c7fd2d;p=civicrm-core.git Switch to helper function --- diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 2506d05a9f..e77244bef1 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1455,8 +1455,7 @@ WHERE civicrm_event.is_active = 1 } if (!empty($fields)) { - $profile = civicrm_api3('UFGroup', 'getsingle', ['id' => $gid, ['return' => ['title', 'frontend_title']]]); - $groupTitle['groupTitle'] = $profile['frontend_title'] ?? $profile['title']; + $groupTitle['groupTitle'] = CRM_Core_BAO_UFGroup::getFrontEndTitle((int) $gid); } $imProviders = CRM_Core_PseudoConstant::get('CRM_Core_DAO_IM', 'provider_id');