ResourceLoaderImage: Use DomDocument::loadXml rather than DomDocument::load
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 31 Jan 2016 22:23:27 +0000 (23:23 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 31 Jan 2016 22:26:37 +0000 (22:26 +0000)
commit6c50ba80c39d09798bc3250e9fdb5eced8f2c246
tree1322fb89b84a8c74d9c57762ee42dd8029e70446
parenta4b114b3eb773252851d7a8a931c75461ee7a3fd
ResourceLoaderImage: Use DomDocument::loadXml rather than DomDocument::load

Some users are reporting that DomDocument::load can't read the files
on their setups, while they can be read with file_get_contents. So use
that and pass the string to DomDocument::loadXml. The advantage of
DomDocument::load is supposed to be in handling large files, and the
icons here are supposed to be small.

Bug: T107198
Change-Id: I8e4dc4642f9d0c5f01ec5e4061e83bf09d0a4900
includes/resourceloader/ResourceLoaderImage.php