// Merge -> revision 8720

This commit is contained in:
rMalie
2011-09-22 15:45:10 +00:00
parent 04f3779780
commit 2180359342
87 changed files with 1591 additions and 724 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ if (isFormValid())
require_once(dirname(__FILE__).'/../../classes/LocalizationPack.php');
$stream_context = stream_context_create(array('http' => array('timeout' => 5)));
$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);
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');