From: Roland Häder Date: Wed, 2 Dec 2009 12:12:24 +0000 (+0000) Subject: Reverted because xml_set_object() requires a variable to be passed by reference... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f00cb649d0efc2353eba6ba98d13a85e589788e9;p=core.git Reverted because xml_set_object() requires a variable to be passed by reference... --- diff --git a/inc/classes/main/parser/xml/class_XmlParser.php b/inc/classes/main/parser/xml/class_XmlParser.php index d026f6da..1281cb4d 100644 --- a/inc/classes/main/parser/xml/class_XmlParser.php +++ b/inc/classes/main/parser/xml/class_XmlParser.php @@ -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');