Check if BACKDROP_ROOT is defined already
[civicrm-core.git] / 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) {