[Translation] fixed usage of LIBXML_COMPACT as it is not always available
This commit is contained in:
parent
e02915b09d
commit
d171d39b5d
@ -32,7 +32,7 @@ class QtTranslationsLoader implements LoaderInterface
|
||||
{
|
||||
$dom = new \DOMDocument();
|
||||
$current = libxml_use_internal_errors(true);
|
||||
if (!@$dom->load($resource, LIBXML_COMPACT)) {
|
||||
if (!@$dom->load($resource, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) {
|
||||
throw new \RuntimeException(implode("\n", $this->getXmlErrors()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user