// Context part 29

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7935 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-08-08 13:17:12 +00:00
parent 89cc9649cf
commit 653ef8d115
40 changed files with 195 additions and 360 deletions
+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>