CRM-19999 Soften event error message on registration
authorJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 10 Feb 2017 16:46:51 +0000 (16:46 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 16 Feb 2017 09:21:54 +0000 (09:21 +0000)
CRM/Event/Form/Registration.php

index 5143206ee79b0900640495e3c5d7acd00bd5368b..cf567cc3da36cfeaddddd41cc0e3d94f88268c9d 100644 (file)
@@ -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'));
     }
   }