// 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:
1 parent
0535b473ed
commit
a5469504cb
1 file changed
+1
-1
@@ -111,7 +111,7 @@ abstract class PaymentModuleCore extends Module
|
|||||||
*/
|
*/
|
||||||
public function addCheckboxCountryRestrictionsForModule(array $shops = array())
|
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();
|
$country_ids = array();
|
||||||
foreach ($countries as $country)
|
foreach ($countries as $country)
|
||||||
$country_ids[] = $country['id_country'];
|
$country_ids[] = $country['id_country'];
|
||||||
|
|||||||
Reference in new issue
Block a user