X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FMigrate%2FImport.php;h=8a9cf99e74f8d0bdd0fc8d4868afb9ead7cac9d1;hb=c6acb33bab40ceec877002312db505b9c275357e;hp=311fb4516d4e7e96df4af3d335dcee21f61df966;hpb=12ec5bb5bfe8d3ae7a2ec327f65e521ccf233647;p=civicrm-core.git diff --git a/CRM/Utils/Migrate/Import.php b/CRM/Utils/Migrate/Import.php index 311fb4516d..8a9cf99e74 100644 --- a/CRM/Utils/Migrate/Import.php +++ b/CRM/Utils/Migrate/Import.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2018 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2017 + * @copyright CiviCRM LLC (c) 2004-2018 */ class CRM_Utils_Migrate_Import { /** @@ -48,7 +48,9 @@ class CRM_Utils_Migrate_Import { public function run($file) { // read xml file $dom = new DomDocument(); - if (!$dom->load($file)) { + $xmlString = file_get_contents($file); + $load = $dom->loadXML($xmlString); + if (!$load) { throw new CRM_Core_Exception("Failed to parse XML file \"$file\""); } $dom->xinclude();