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 May 10, 2022
1 parent 96b7c24 commit c29fd02
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 c29fd02

Please sign in to comment.