// add ps_version parameter on call of prestashop_link.php file #PSCFV-17
This commit is contained in:
@@ -616,7 +616,7 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
$isoUser = Context::getContext()->language->iso_code;
|
$isoUser = Context::getContext()->language->iso_code;
|
||||||
$isoCountry = Context::getContext()->country->iso_code;
|
$isoCountry = Context::getContext()->country->iso_code;
|
||||||
|
|
||||||
$content = @file_get_contents($protocol.'://api.prestashop.com/partner/prestashop/prestashop-link.php?iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id, false, $stream_context);
|
$content = @file_get_contents($protocol.'://api.prestashop.com/partner/prestashop/prestashop-link.php?iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id.'&ps_version='.urlencode(_PS_VERSION_), false, $stream_context);
|
||||||
|
|
||||||
if (!$content)
|
if (!$content)
|
||||||
return ''; // NOK
|
return ''; // NOK
|
||||||
|
|||||||
Reference in New Issue
Block a user