From: JKingsnorth Date: Fri, 10 Feb 2017 16:46:51 +0000 (+0000) Subject: CRM-19999 Soften event error message on registration X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5e29b453b59747a3a8ef2506d10fb6da30460573;p=civicrm-core.git CRM-19999 Soften event error message on registration --- diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 5143206ee7..cf567cc3da 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -1467,7 +1467,7 @@ WHERE v.option_group_id = g.id $startDate && $startDate >= $now ) { - CRM_Core_Error::statusBounce(ts('Registration for this event begins on %1', array(1 => CRM_Utils_Date::customFormat(CRM_Utils_Array::value('registration_start_date', $this->_values['event'])))), $redirect); + CRM_Core_Error::statusBounce(ts('Registration for this event begins on %1', array(1 => CRM_Utils_Date::customFormat(CRM_Utils_Array::value('registration_start_date', $this->_values['event'])))), $redirect, ts('Sorry')); } $regEndDate = CRM_Utils_Date::processDate(CRM_Utils_Array::value('registration_end_date', @@ -1479,7 +1479,7 @@ WHERE v.option_group_id = g.id if (empty($regEndDate)) { $endDate = CRM_Utils_Date::customFormat(CRM_Utils_Array::value('event_end_date', $this->_values['event'])); } - CRM_Core_Error::statusBounce(ts('Registration for this event ended on %1', array(1 => $endDate)), $redirect); + CRM_Core_Error::statusBounce(ts('Registration for this event ended on %1', array(1 => $endDate)), $redirect, ts('Sorry')); } }