diff --git a/controllers/admin/AdminLocalizationController.php b/controllers/admin/AdminLocalizationController.php index a496512f1..fadab3230 100644 --- a/controllers/admin/AdminLocalizationController.php +++ b/controllers/admin/AdminLocalizationController.php @@ -147,7 +147,7 @@ class AdminLocalizationControllerCore extends AdminController $version = str_replace('.', '', _PS_VERSION_); $version = substr($version, 0, 2); - $pack = @Tools::file_get_contents('http://api.prestashop.com/download/localization/'.$version.'/'.Tools::getValue('iso_localization_pack').'.xml'); + $pack = @Tools::file_get_contents('http://api.prestashop.com/localization/'.$version.'/'.Tools::getValue('iso_localization_pack').'.xml'); if (!$pack && !($pack = @Tools::file_get_contents(dirname(__FILE__).'/../../localization/'.Tools::getValue('iso_localization_pack').'.xml'))) $this->errors[] = Tools::displayError('Cannot load localization pack (from prestashop.com and from your local folder "localization")'); diff --git a/install-dev/models/install.php b/install-dev/models/install.php index d335f69ba..c46ae48e1 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -426,7 +426,7 @@ class InstallModelInstall extends InstallAbstractModel $version = str_replace('.', '', _PS_VERSION_); $version = substr($version, 0, 2); - $localization_file_content = @Tools::file_get_contents('http://api.prestashop.com/download/localization/'.$version.'/'.$data['shop_country'].'.xml'); + $localization_file_content = @Tools::file_get_contents('http://api.prestashop.com/localization/'.$version.'/'.$data['shop_country'].'.xml'); if (!$localization_file_content) { $localization_file = _PS_ROOT_DIR_.'/localization/default.xml';