diff --git a/includes/civicrm.admin.php b/includes/civicrm.admin.php index e43a1fd..ef94c6b 100644 --- a/includes/civicrm.admin.php +++ b/includes/civicrm.admin.php @@ -416,13 +416,13 @@ public function initialize() { return FALSE; } - // Initialize the Class Loader. - require_once CIVICRM_PLUGIN_DIR . 'civicrm/CRM/Core/ClassLoader.php'; - CRM_Core_ClassLoader::singleton()->register(); - // Access global defined in "civicrm.settings.php". global $civicrm_root; + // Initialize the Class Loader. + require_once $civicrm_root . 'CRM/Core/ClassLoader.php'; + CRM_Core_ClassLoader::singleton()->register(); + // Bail if the config file isn't found. if (!file_exists($civicrm_root . 'CRM/Core/Config.php')) { $this->error_flag = 'config-missing';