Skip to content

Commit

Permalink
Revert usage of dirname()'s 2nd argument to support PHP version used …
Browse files Browse the repository at this point in the history
…by Jenkins
  • Loading branch information
dsnopek committed Aug 8, 2017
1 parent d1f6065 commit 9f1588f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ protected function requireComposerAutoload() {
// civicrm-core directory. However, if civicrm-core was installed via
// composer as a library, that'll be 5 directories up where composer was
// run (ex. the Drupal root on a Drupal 8 site).
$civicrm_base_path = dirname(__DIR__, 2);
$top_path = dirname(__DIR__, 5);
$civicrm_base_path = dirname(dirname(__DIR__));
$top_path = dirname(dirname(dirname(dirname(dirname(__DIR__)))));

if (file_exists($civicrm_base_path . '/vendor/autoload.php')) {
require_once $civicrm_base_path . '/vendor/autoload.php';
Expand Down

0 comments on commit 9f1588f

Please sign in to comment.