From e23eb52fa14e0ef6a583690e0230af7397acdd1b Mon Sep 17 00:00:00 2001 From: andrewpthompson Date: Mon, 20 Aug 2018 13:45:58 +0930 Subject: [PATCH] Use DIRECTORY_SEPARATOR in getBasePath() Hard-coded forward slash resulted in incorrect path on Windows --- CRM/Utils/System/Joomla.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index 64bb31d778..fafb599b2f 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -529,7 +529,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { */ public function getBasePath() { global $civicrm_root; - $joomlaPath = explode('/administrator', $civicrm_root); + $joomlaPath = explode(DIRECTORY_SEPARATOR . 'administrator', $civicrm_root); $joomlaBase = $joomlaPath[0]; return $joomlaBase; } -- 2.25.1