make install work on windows
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 24 Mar 2020 03:07:29 +0000 (23:07 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 24 Mar 2020 03:07:29 +0000 (23:07 -0400)
CRM/Core/CodeGen/Util/Xml.php

index 8d64be7006c3a61259f4fb0e03459f0978a83b00..4a629b5014335657a77c4e90fb896946f27aabfa 100644 (file)
@@ -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);