diff --git a/e107_handlers/xml_class.php b/e107_handlers/xml_class.php index 7dfb98c9f..2d36fdbdc 100644 --- a/e107_handlers/xml_class.php +++ b/e107_handlers/xml_class.php @@ -95,6 +95,12 @@ class parseXml extends xmlClass // BC with v1.x { $error = sprintf('XML error: %s at line %d, column %d', xml_error_string(xml_get_error_code($this->parser)), xml_get_current_line_number($this->parser),xml_get_current_column_number($this->parser)); $log->addDebug($error)->save('XML'); + if(e_DEBUG === true) + { + $error .= "\n".$data; + $error .= "\n--------------------------------------------\n\n"; + $log->addDebug($error)->toFile('xmlErrors',"XML Error Log",true); + } return FALSE; } }