From 2f4cf5f0bcf572ae1dcc1c7506d1973f30402b1b Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 21 May 2012 21:49:25 +0000 Subject: [PATCH] // Fix simple_xml_warnings git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15588 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/models/install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-dev/models/install.php b/install-dev/models/install.php index 1b60448dd..321758f36 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -431,6 +431,8 @@ class InstallModelInstall extends InstallAbstractModel $version = substr($version, 0, 2); $localization_file_content = @Tools::file_get_contents('http://api.prestashop.com/localization/'.$version.'/'.$data['shop_country'].'.xml'); + if (!@simplexml_load_string($localization_file_content)) + $localization_file_content = false; if (!$localization_file_content) { $localization_file = _PS_ROOT_DIR_.'/localization/default.xml';