Unverified Commit f7c335b1 authored by totten's avatar totten Committed by GitHub

Merge pull request #16886 from demeritcowboy/xmlinclude-windows

#1643 - Make civicrm-setup (especially drupal 8) work on windows
parents 426d17e4 6fa5ec52
......@@ -12,6 +12,8 @@ class CRM_Core_CodeGen_Util_Xml {
* @return SimpleXMLElement|bool
*/
public static function parse($file) {
// xinclude() only works with forward slashes
$file = str_replace(DIRECTORY_SEPARATOR, '/', $file);
$dom = new DomDocument();
$xmlString = file_get_contents($file);
$dom->loadXML($xmlString);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment