Skip to content

Commit

Permalink
Change working directory before trying to include CiviCRM settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Nov 25, 2022
1 parent a6265f9 commit 9d22fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kcfinder/integration/civicrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 9d22fbf

Please sign in to comment.