]> git.mxchange.org Git - core.git/commitdiff
Reverted because xml_set_object() requires a variable to be passed by reference...
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 12:12:24 +0000 (12:12 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 12:12:24 +0000 (12:12 +0000)
inc/classes/main/parser/xml/class_XmlParser.php

index d026f6daddd641ac1db5b5e72937ed3acbbc7475..1281cb4d74a6fb418e6bfffc64b79b4d2a945d98 100644 (file)
@@ -80,8 +80,11 @@ class XmlParser extends BaseParser implements Parseable {
                // Set UTF-8
                xml_parser_set_option($xmlParser, XML_OPTION_TARGET_ENCODING, 'UTF-8');
 
+               // Get instance (we need this :( )
+               $templateInstance = $this->getTemplateInstance();
+
                // Set object
-               xml_set_object($xmlParser, $this->getTemplateInstance());
+               xml_set_object($xmlParser, $templateInstance);
 
                // Set handler call-backs
                xml_set_element_handler($xmlParser, 'startElement', 'endElement');