// Context part 32
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8095 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -189,7 +189,7 @@ class PDFCore extends PDF_PageGroupCore
|
||||
private function _builMerchantFooterDetail($conf)
|
||||
{
|
||||
// If the country is USA
|
||||
if (Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT')) == 'US')
|
||||
if (Context::getContext()->country->iso_code == 'US')
|
||||
{
|
||||
$completeAddressShop = $this->_getCompleteUSAddressFormat($conf);
|
||||
|
||||
@@ -449,7 +449,7 @@ class PDFCore extends PDF_PageGroupCore
|
||||
if (!in_array($pattern, $patternRules['avoid']))
|
||||
{
|
||||
if ($pattern == 'State:name' &&
|
||||
Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT')) == 'US')
|
||||
Context::getContext()->country->iso_code == 'US')
|
||||
{
|
||||
$state = &$addressType[$type]['addressFormatedValues'][$pattern];
|
||||
$state = strtoupper(substr($state, 0, 2));
|
||||
|
||||
Reference in New Issue
Block a user