Fixed: Translation Server Unreachable - While Adding ISO code of a Language
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -552,7 +552,7 @@ class AdminLanguagesControllerCore extends AdminController
|
||||
}
|
||||
|
||||
// Get all iso code available
|
||||
if ($lang_packs = Tools::file_get_contents('http://www.prestashop.com/download/lang_packs/get_language_pack.php?version='.Tools::getValue('ps_version').'&iso_lang='.Tools::strtolower(Tools::getValue('iso_lang')))) {
|
||||
if ($lang_packs = Tools::file_get_contents(_QLO_API_URL_.'/lang_pack/get_lang_pack.php?version='.Tools::getValue('ps_version').'&iso_lang='.Tools::strtolower(Tools::getValue('iso_lang')))) {
|
||||
$result = json_decode($lang_packs);
|
||||
if ($lang_packs !== '' && $result && !isset($result->error)) {
|
||||
$this->status = 'ok';
|
||||
|
||||
Reference in New Issue
Block a user