LocalisationCache: Use file_get_contents instead of DOMDocument::load
authorThis, that and the other <at.light@live.com.au>
Wed, 26 Nov 2014 09:02:09 +0000 (20:02 +1100)
committerMattflaschen <mflaschen@wikimedia.org>
Sun, 14 Dec 2014 05:56:02 +0000 (05:56 +0000)
commitc139126841458ba1be4c1d2abb485c0d3584afd8
treeb977358d06bb14f2038d1b681b474a724ecbe8f8
parent582adf6d19daaa436d2c7e802a1cece40c8f32bd
LocalisationCache: Use file_get_contents instead of DOMDocument::load

DOMDocument::load fails to load the plurals data during the import
process.

This is a work-around for https://bugs.php.net/bug.php?id=64938. This
bug only rears its head when using Special:Import, because that is
essentially the only place in MediaWiki where we fiddle with
libxml_disable_entity_loader.

Bug: T58439
Change-Id: Idcb4ab1cef2a7b080543e7cc1cee5464fc476456
includes/cache/LocalisationCache.php