// Context part 29

This commit is contained in:
tDidierjean committed 2011-08-08 13:17:12 +00:00
1 parent 2b71b8be68
commit 0310674fe0
40 files changed
+195 -360

No files matched your search

+1 -3
View File
@@ -147,8 +147,6 @@ class VatNumber extends Module
public function getContent()
{
global $cookie;
$echo = '';
if (Tools::isSubmit('submitVatNumber'))
@@ -166,7 +164,7 @@ class VatNumber extends Module
<div class="margin-form">
<select name="vatnumber_country">
<option value="0">'.$this->l('-- Choose a country --').'</option>';
foreach (Country::getCountries((int)($cookie->id_lang)) as $country)
foreach (Country::getCountries($this->context->language->id) as $country)
$echo .= ' <option value="'.$country['id_country'].'" '.(Tools::getValue('VATNUMBER_COUNTRY', Configuration::get('VATNUMBER_COUNTRY')) == $country['id_country'] ? 'selected="selected"' : '').'>'.$country['name'].'</option>';
$echo .= ' </select>
</div>