Skip to content

Commit

Permalink
CRM-20780 Add drupal option to define CMS_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jun 30, 2017
1 parent d5ce186 commit d33e2f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Utils/System/Drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,12 @@ public function cmsRootPath($scriptFilename = NULL) {
// drush anyway takes care of multisite install etc
return drush_get_context('DRUSH_DRUPAL_ROOT');
}

global $civicrm_paths;
if (!empty($civicrm_paths['cms.root']['path'])) {
return $civicrm_paths['cms.root']['path'];
}

// CRM-7582
$pathVars = explode('/',
str_replace('//', '/',
Expand Down

0 comments on commit d33e2f7

Please sign in to comment.