// Fixed bad use of context

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17673 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-10-02 08:55:20 +00:00
parent 0535b473ed
commit a5469504cb
+1 -1
View File
@@ -111,7 +111,7 @@ abstract class PaymentModuleCore extends Module
*/
public function addCheckboxCountryRestrictionsForModule(array $shops = array())
{
$countries = Country::getCountries((int)Context::getContext()->cookie->id_lang, true); //get only active country
$countries = Country::getCountries((int)Context::getContext()->language->id, true); //get only active country
$country_ids = array();
foreach ($countries as $country)
$country_ids[] = $country['id_country'];