Explorar o código

Allow blanks (line breaks and indentation) in the XML model files

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1901 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=13) %!d(string=hai) anos
pai
achega
51342ff1ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      setup/modelfactory.class.inc.php

+ 1 - 1
setup/modelfactory.class.inc.php

@@ -307,7 +307,7 @@ class ModelFactory
 		foreach($aDataModels as $sXmlFile)
 		{
 			$oDocument = new DOMDocument('1.0', 'UTF-8');
-			$oDocument->load($sXmlFile);
+			$oDocument->load($sXmlFile, LIBXML_NOBLANKS);
 			$oXPath = new DOMXPath($oDocument);
 			$oNodeList = $oXPath->query('//*');
 			foreach($oNodeList as $oNode)