Skip to content

Commit

Permalink
Merge pull request #9823 from JKingsnorth/CRM-19999
Browse files Browse the repository at this point in the history
CRM-19999 Soften event error message on registration
  • Loading branch information
eileenmcnaughton authored Feb 16, 2017
2 parents dfea323 + 5e29b45 commit ae08115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Event/Form/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ public function checkValidEvent($redirect = NULL) {
$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',
Expand All @@ -1479,7 +1479,7 @@ public function checkValidEvent($redirect = NULL) {
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'));
}
}

Expand Down

0 comments on commit ae08115

Please sign in to comment.