Index: branches/5.2.x/core/install/install_toolkit.php =================================================================== diff -u -N -r15137 -r15158 --- branches/5.2.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 15137) +++ branches/5.2.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 15158) @@ -1,6 +1,6 @@ Application->recallObject('kXMLHelper'); - /* @var $xml_helper kXMLHelper */ + $ret = Array (); + $module_info = simplexml_load_file($info_file); - $root_node =& $xml_helper->Parse( file_get_contents($info_file) ); - - if (!is_object($root_node) || !preg_match('/^kxmlnode/i', get_class($root_node)) || ($root_node->Name == 'ERROR')) { + if ( $module_info === false ) { // non-valid xml file return Array (); } - $ret = Array (); - $current_node =& $root_node->firstChild; + foreach ($module_info as $node) { + /* @var $node SimpleXMLElement */ + $ret[strtolower($node->getName())] = trim($node); + } - do { - $ret[ strtolower($current_node->Name) ] = trim($current_node->Data); - } while (($current_node =& $current_node->NextSibling())); - return $ret; }