From: Roland Häder Date: Wed, 2 Dec 2009 12:11:01 +0000 (+0000) Subject: Melted together because was only used once X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=74002d16ea26fbdd6efa8c042efe420f82490340;p=core.git Melted together because was only used once --- diff --git a/inc/classes/main/parser/xml/class_XmlParser.php b/inc/classes/main/parser/xml/class_XmlParser.php index f8a6273e..d026f6da 100644 --- a/inc/classes/main/parser/xml/class_XmlParser.php +++ b/inc/classes/main/parser/xml/class_XmlParser.php @@ -80,11 +80,8 @@ class XmlParser extends BaseParser implements Parseable { // Set UTF-8 xml_parser_set_option($xmlParser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); - // Get template instance - $templateInstance = $this->getTemplateInstance(); - // Set object - xml_set_object($xmlParser, $templateInstance); + xml_set_object($xmlParser, $this->getTemplateInstance()); // Set handler call-backs xml_set_element_handler($xmlParser, 'startElement', 'endElement');