From c29fd0262114d6abe283f60c3529d4504aab377f Mon Sep 17 00:00:00 2001 From: Jens Schuppe Date: Tue, 10 May 2022 12:52:22 +0200 Subject: [PATCH] Change working directory before trying to include CiviCRM settings file --- kcfinder/integration/civicrm.php | 1 + 1 file changed, 1 insertion(+) 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';