1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 21:11:29 +00:00

generate a warning if plugin-generated content of HOOK_ARTICLE_BUTTON or _LEFT_BUTTON can't be parsed as valid XML

This commit is contained in:
Andrew Dolgov
2022-01-06 10:37:03 +03:00
parent 97baf3e8b9
commit c3482fbe6b
4 changed files with 35 additions and 5 deletions

View File

@@ -193,10 +193,9 @@ class FeedParser {
}
}
/** @deprecated use Errors::format_libxml_error() instead */
function format_error(LibXMLError $error) : string {
return sprintf("LibXML error %s at line %d (column %d): %s",
$error->code, $error->line, $error->column,
$error->message);
return Errors::format_libxml_error($error);
}
// libxml may have invalid unicode data in error messages