Check if BACKDROP_ROOT is defined already
authorLaryn - CEDC.org <laryn@cedc.org>
Mon, 21 Sep 2020 17:56:11 +0000 (12:56 -0500)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 17:56:11 +0000 (12:56 -0500)
CRM/Utils/System/Backdrop.php

index 83b66078cd1c013fc4f5c14e40b2b0cbde544a56..7821682921dc53ddc07fa2e3a2e2951512e26764 100644 (file)
@@ -524,7 +524,9 @@ AND    u.status = 1
     }
     // load Backdrop bootstrap
     chdir($cmsPath);
-    define('BACKDROP_ROOT', $cmsPath);
+    if (!defined('BACKDROP_ROOT')) {
+        define('BACKDROP_ROOT', $cmsPath);
+    }
 
     // For Backdrop multi-site CRM-11313
     if ($realPath && strpos($realPath, 'sites/all/modules/') === FALSE) {