Merge pull request #17396 from seamuslee001/use_util_mail_events
[civicrm-core.git] / CRM / Profile / Page / View.php
index 0dbaf37bf0e415fbfe9b4a7a53bf9750074617b7..54f563d4e9e441a930ab64a98fb5b09946217434 100644 (file)
@@ -13,7 +13,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC https://civicrm.org/licensing
- *
  */
 
 /**
@@ -49,7 +48,7 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
       $session = CRM_Core_Session::singleton();
       $this->_id = $session->get('userID');
       if (!$this->_id) {
-        CRM_Core_Error::fatal(ts('Could not find the required contact id parameter (id=) for viewing a contact record with a Profile.'));
+        CRM_Core_Error::statusBounce(ts('Could not find the required contact id parameter (id=) for viewing a contact record with a Profile.'));
       }
     }
     $this->assign('cid', $this->_id);
@@ -66,7 +65,7 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
 
       // check if we are rendering mixed profiles
       if (CRM_Core_BAO_UFGroup::checkForMixProfiles($profileIds)) {
-        CRM_Core_Error::fatal(ts('You cannot combine profiles of multiple types.'));
+        CRM_Core_Error::statusBounce(ts('You cannot combine profiles of multiple types.'));
       }
 
       $this->_gid = $profileIds[0];