diff --git a/kcfinder/integration/civicrm.php b/kcfinder/integration/civicrm.php index b511535fe..1c06b7ca4 100644 --- a/kcfinder/integration/civicrm.php +++ b/kcfinder/integration/civicrm.php @@ -42,6 +42,7 @@ function checkAuthentication() { $current_cwd = getcwd(); $civicrm_root = dirname(dirname(getcwd())); $authenticated = false; + chdir($civicrm_root); require_once "{$civicrm_root}/civicrm.config.php"; require_once 'CRM/Core/Config.php';