diff options
author | Reedy <reedy@wikimedia.org> | 2020-12-27 16:04:42 +0000 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2020-12-27 22:01:02 +0000 |
commit | 77f631ea5ec5f1f19f153df9de5ee6a39a4cb50a (patch) | |
tree | 9bc0f390986237e9a83f8bb6af267be2a66e302e /includes/import | |
parent | abb759662c53e8cdb72334010cfbd14afb1f0f79 (diff) | |
download | mediawikicore-77f631ea5ec5f1f19f153df9de5ee6a39a4cb50a.tar.gz mediawikicore-77f631ea5ec5f1f19f153df9de5ee6a39a4cb50a.zip |
composer.json: Add ext-libxml and ext-xmlreader to requires
Change-Id: I1c82ec4f2b521ff9dc2d4604cf1007847f32f7de
Diffstat (limited to 'includes/import')
-rw-r--r-- | includes/import/WikiImporter.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/import/WikiImporter.php b/includes/import/WikiImporter.php index 86d591107ab0..0b4930537766 100644 --- a/includes/import/WikiImporter.php +++ b/includes/import/WikiImporter.php @@ -61,13 +61,9 @@ class WikiImporter { * Creates an ImportXMLReader drawing from the source provided * @param ImportSource $source * @param Config $config - * @throws Exception + * @throws MWException */ public function __construct( ImportSource $source, Config $config ) { - if ( !class_exists( 'XMLReader' ) ) { - throw new Exception( 'Import requires PHP to have been compiled with libxml support' ); - } - $this->reader = new XMLReader(); $this->config = $config; $this->hookRunner = Hooks::runner(); |