$this->_defaults['enableSSL'] = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enableSSL');
$this->_defaults['verifySSL'] = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'verifySSL');
+ $this->_defaults['enableComponents'] = Civi::settings()->get('enable_components');
}
return $this->_defaults;
mb_internal_encoding('UTF-8');
}
}
-
- // dont add if its empty
- if (!empty($defaults)) {
- // Pickup enabled-components from settings table if found.
- $enableComponents = Civi::settings()->get('enable_components');
- if (!empty($enableComponents)) {
- $defaults['enableComponents'] = $enableComponents;
- }
- }
}
/**
$this->$key = $value;
}
+ $this->enableComponents = Civi::settings()->get('enable_components');
+
$this->customFileUploadDir = CRM_Core_Config_Defaults::getCustomFileUploadDir();
$this->customPHPPathDir = CRM_Core_Config_Defaults::getCustomPhpPathDir();
$this->customTemplateDir = CRM_Core_Config_Defaults::getCustomTemplateDir();