From: Sudha Bisht Date: Mon, 29 Jun 2015 07:06:34 +0000 (+0530) Subject: Fix for event info message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=12cc37ef45e0feeeea739350f45cd1854ce277f4;p=civicrm-core.git Fix for event info message --- diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 014fd512bb..3bab4a99c0 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -79,7 +79,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { if (!$values['event']['is_active']) { // form is inactive, die a fatal death - CRM_Core_Error::fatal(ts('The page you requested is currently unavailable.')); + CRM_Utils_System::setUFMessage(ts('The event you requested is currently unavailable (contact the site administrator for assistance).')); + return CRM_Utils_System::permissionDenied(); } if (!empty($values['event']['is_template'])) {