<?php
/**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use DOMNode;
use DOMXPath;
use Friendica\Core\Logger;
-use Friendica\Core\System;
use SimpleXMLElement;
/**
$x = @simplexml_load_string($s);
if (!$x) {
if (!$suppress_log) {
- Logger::error('Error(s) while parsing XML string.', ['callstack' => System::callstack()]);
+ Logger::error('Error(s) while parsing XML string.');
foreach (libxml_get_errors() as $err) {
Logger::info('libxml error', ['code' => $err->code, 'position' => $err->line . ':' . $err->column, 'message' => $err->message]);
}