From 1cee22f01c19c33eb7266af569c488558ca72ebd Mon Sep 17 00:00:00 2001 From: colemanw Date: Tue, 26 Sep 2017 21:34:19 -0400 Subject: [PATCH] CRM-21217 - Conditionally define constant --- CRM/Utils/System/Backdrop.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/System/Backdrop.php b/CRM/Utils/System/Backdrop.php index a66fbf6549..7de0c8a2cb 100644 --- a/CRM/Utils/System/Backdrop.php +++ b/CRM/Utils/System/Backdrop.php @@ -334,7 +334,9 @@ class CRM_Utils_System_Backdrop extends CRM_Utils_System_DrupalBase { // SOAP cannot load Backdrop bootstrap and hence we do it the old way // Contact CiviSMTP folks if we run into issues with this :) $cmsPath = $this->cmsRootPath(); - define(BACKDROP_ROOT, $cmsPath); + if (!defined('BACKDROP_ROOT')) { + define(BACKDROP_ROOT, $cmsPath); + } require_once "$cmsPath/core/includes/bootstrap.inc"; require_once "$cmsPath/core/includes/password.inc"; -- 2.25.1