Skip to content

Commit

Permalink
Use DIRECTORY_SEPARATOR in getBasePath()
Browse files Browse the repository at this point in the history
Hard-coded forward slash resulted in incorrect path on Windows
  • Loading branch information
andrewpthompson authored Aug 20, 2018
1 parent 1b81c5d commit e23eb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/System/Joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public function getJVersion($joomlaBase) {
*/
public function getBasePath() {
global $civicrm_root;
$joomlaPath = explode('/administrator', $civicrm_root);
$joomlaPath = explode(DIRECTORY_SEPARATOR . 'administrator', $civicrm_root);
$joomlaBase = $joomlaPath[0];
return $joomlaBase;
}
Expand Down

0 comments on commit e23eb52

Please sign in to comment.