Enable entity loader and handle errors nicely in WikiImporter constructor
authorThis, that and the other <at.light@live.com.au>
Tue, 13 Jan 2015 05:57:07 +0000 (16:57 +1100)
committerThis, that and the other <at.light@live.com.au>
Sat, 11 Apr 2015 01:40:17 +0000 (11:40 +1000)
commit0f79f04a68f2c71820ce0dc1bee43d3888c6089f
treed03ba7e885bc5f8168677b38f79b4fcd02c06b0c
parent85acf8afba3df02f1a740f249db88ad9c5ffc178
Enable entity loader and handle errors nicely in WikiImporter constructor

Two issues being addressed here:
* Slightly friendlier message (instead of fatal) if libxml is not present
* Need to make sure the entity loader is enabled when opening XML documents

Also provide an error message when XMLReader::open fails, as otherwise,
the user sees cryptic errors from code that tries to use the (unopened)
XMLReader.

Bug: T45868
Bug: T86036
Change-Id: Ibcccce9f09f87b17c3093fd0c3c3ff74d7dc6cb7
includes/Import.php