From d33e2f7dafa7d43d355d46c3d485f5d0ebe50a4f Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 28 Jun 2017 20:29:54 +1200 Subject: [PATCH] CRM-20780 Add drupal option to define CMS_ROOT --- CRM/Utils/System/Drupal.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index 1c9d8b288057..b9c99989e761 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -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('//', '/',