diff --git a/e107_handlers/xml_class.php b/e107_handlers/xml_class.php index 167536924..266108ade 100644 --- a/e107_handlers/xml_class.php +++ b/e107_handlers/xml_class.php @@ -614,7 +614,7 @@ class xmlClass */ function loadXMLfile($fname, $parse = false, $replace_constants = false) { - global $tp; + $tp = e107::getParser(); if (empty($fname)) {