Keep errors internal

This commit is contained in:
Diego Najar 2017-10-21 20:35:45 +02:00
parent df978c0a75
commit 4ccd4ae24d
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class DOM {
public static function getFirstImage($content) public static function getFirstImage($content)
{ {
// Disable warning // Disable warning
libxml_use_internal_errors(); libxml_use_internal_errors(true);
$dom = new DOMDocument(); $dom = new DOMDocument();
$dom->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">'.$content); $dom->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">'.$content);
$finder = new DomXPath($dom); $finder = new DomXPath($dom);