// Change URLs calling for prestashop.com

This commit is contained in:
rGaillard
2011-11-25 18:45:07 +00:00
parent 11a5e1560e
commit f82dbee84d
18 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ if (isFormValid())
$stream_context = @stream_context_create(array('http' => array('timeout' => 5)));
$localization_file = @Tools::file_get_contents('http://www.prestashop.com/download/localization_pack.php?country='.$_GET['countryName'], false, $stream_context);
$localization_file = @Tools::file_get_contents('http://api.prestashop.com/download/localization_pack.php?country='.$_GET['countryName'], false, $stream_context);
if (!$localization_file AND file_exists(dirname(__FILE__).'/../../localization/'.strtolower($_GET['countryName']).'.xml'))
$localization_file = @file_get_contents(dirname(__FILE__).'/../../localization/'.strtolower($_GET['countryName']).'.xml');
if ($localization_file)