aboutsummaryrefslogtreecommitdiffstats
path: root/includes/site
diff options
context:
space:
mode:
Diffstat (limited to 'includes/site')
-rw-r--r--includes/site/SiteImporter.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/includes/site/SiteImporter.php b/includes/site/SiteImporter.php
index 1ea833f6c95e..18660890c2fe 100644
--- a/includes/site/SiteImporter.php
+++ b/includes/site/SiteImporter.php
@@ -115,14 +115,7 @@ class SiteImporter {
libxml_use_internal_errors( $oldLibXmlErrors );
// phpcs:ignore Generic.PHP.NoSilencedErrors
@libxml_disable_entity_loader( $oldDisable );
- $this->importFromDOM( $document->documentElement );
- }
-
- /**
- * @param DOMElement $root
- */
- private function importFromDOM( DOMElement $root ) {
- $sites = $this->makeSiteList( $root );
+ $sites = $this->makeSiteList( $document->documentElement );
$this->store->saveSites( $sites );
}