This variable is a trivial variant on `$civicrm_root`. It does not appear to
be editable, and it is only used in one place.
*/
private function _getDataSources() {
// Open the data source dir and scan it for class files
- $config = CRM_Core_Config::singleton();
- $dataSourceDir = $config->importDataSourceDir;
+ global $civicrm_root;
+ $dataSourceDir = $civicrm_root . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'Import' . DIRECTORY_SEPARATOR . 'DataSource' . DIRECTORY_SEPARATOR;
$dataSources = array();
if (!is_dir($dataSourceDir)) {
CRM_Core_Error::fatal("Import DataSource directory $dataSourceDir does not exist");
$this->sqlDir = $civicrm_root . DIRECTORY_SEPARATOR . 'sql' . DIRECTORY_SEPARATOR;
- $this->importDataSourceDir = $civicrm_root . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'Import' . DIRECTORY_SEPARATOR . 'DataSource' . DIRECTORY_SEPARATOR;
-
// show tree widget
$this->groupTree = defined('CIVICRM_GROUPTREE') ? TRUE : FALSE;