X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FManageEvent.php;h=4f2030fd849865a2bc8e52fd083a42ef8874a0a0;hb=7715880a3a4c917404d71859e8dd69e5969b2986;hp=292e8b2b4c85eae76f0a0f12d5e23d09c4deec50;hpb=e5ea8aeacd6508c76622750169e2d842ca8e1729;p=civicrm-core.git diff --git a/CRM/Event/Form/ManageEvent.php b/CRM/Event/Form/ManageEvent.php index 292e8b2b4c..4f2030fd84 100644 --- a/CRM/Event/Form/ManageEvent.php +++ b/CRM/Event/Form/ManageEvent.php @@ -88,10 +88,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { * Set variables up before form is built. */ public function preProcess() { - $config = CRM_Core_Config::singleton(); - if (in_array('CiviEvent', $config->enableComponents)) { - $this->assign('CiviEvent', TRUE); - } + $this->assign('CiviEvent', CRM_Core_Component::isEnabled('CiviEvent')); CRM_Core_Form_RecurringEntity::preProcess('civicrm_event'); $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add', 'REQUEST'); @@ -354,8 +351,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { [1 => CRM_Utils_Array::value('title', CRM_Utils_Array::value($subPage, $this->get('tabHeader')), $className)] ), $this->getTitle(), 'success'); - $config = CRM_Core_Config::singleton(); - if (in_array('CiviCampaign', $config->enableComponents)) { + if (CRM_Core_Component::isEnabled('CiviCampaign')) { $values = $this->controller->exportValues($this->_name); $newCampaignID = $values['campaign_id'] ?? NULL; $eventID = $values['id'] ?? NULL;