// Context part 25
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7794 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -29,7 +29,7 @@ class AdminGeolocation extends AdminTab
|
||||
{
|
||||
public function display()
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$this->context = Context::getContext();
|
||||
echo '
|
||||
<h2>'.$this->l('Geolocation').'</h2>
|
||||
';
|
||||
@@ -97,7 +97,7 @@ class AdminGeolocation extends AdminTab
|
||||
</thead>
|
||||
<tbody>
|
||||
';
|
||||
foreach (Country::getCountries($context->language->id) AS $country)
|
||||
foreach (Country::getCountries($this->context->language->id) AS $country)
|
||||
echo '
|
||||
<tr>
|
||||
<td><input type="checkbox" name="countries[]" value="'.strtoupper(Tools::htmlentitiesUTF8($country['iso_code'])).'" '.(in_array(strtoupper($country['iso_code']), $allowedCountries) ? 'checked="checked"' : '').' /></td>
|
||||
|
||||
Reference in New Issue
Block a user