// MERGE with 1.4 r7770
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7776 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -261,7 +261,6 @@ class LocalizationPackCore
|
||||
$county_behavior = (int)$rule_attributes['county_behavior'];
|
||||
}
|
||||
|
||||
|
||||
// Creation
|
||||
$tr = new TaxRule();
|
||||
$tr->id_tax_rules_group = $trg->id;
|
||||
@@ -283,7 +282,7 @@ class LocalizationPackCore
|
||||
{
|
||||
if (isset($xml->currencies->currency))
|
||||
{
|
||||
if (!$feed = @simplexml_load_file('http://www.prestashop.com/xml/currencies.xml') AND !$feed = @simplexml_load_file(dirname(__FILE__).'/../localization/currencies.xml'))
|
||||
if (!$feed = Tools::simplexml_load_file('http://www.prestashop.com/xml/currencies.xml') AND !$feed = @simplexml_load_file(dirname(__FILE__).'/../localization/currencies.xml'))
|
||||
{
|
||||
$this->_errors[] = Tools::displayError('Cannot parse the currencies XML feed.');
|
||||
return false;
|
||||
@@ -342,7 +341,9 @@ class LocalizationPackCore
|
||||
foreach ($native_lang AS $lang)
|
||||
$native_iso_code[] = $lang['iso_code'];
|
||||
if ((in_array((string)$attributes['iso_code'], $native_iso_code) AND !$install_mode) OR !in_array((string)$attributes['iso_code'], $native_iso_code))
|
||||
if(@fsockopen('www.prestashop.com', 80, $errno = 0, $errstr = '', 10))
|
||||
$errno = 0;
|
||||
$errstr = '';
|
||||
if(@fsockopen('www.prestashop.com', 80, $errno, $errstr, 10))
|
||||
{
|
||||
if ($lang_pack = Tools::jsonDecode(Tools::file_get_contents('http://www.prestashop.com/download/lang_packs/get_language_pack.php?version='._PS_VERSION_.'&iso_lang='.$attributes['iso_code'])))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user