@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | if ($countryObject) { |
| 40 | 40 | $countryID = $countryObject->ID; |
| 41 | - if($this->owner->dataRecord->getEcommerceTranslation($countryID)) { |
|
| 41 | + if ($this->owner->dataRecord->getEcommerceTranslation($countryID)) { |
|
| 42 | 42 | $newURL = $this->addCountryCodeToUrlIfRequired($countryObject->Code); |
| 43 | - if($newURL) { |
|
| 43 | + if ($newURL) { |
|
| 44 | 44 | $this->owner->redirect($newURL); |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | parse_str($urlParts['query'], $params); |
| 98 | 98 | |
| 99 | 99 | $param = Config::inst()->get('CountryPrice_Translation', 'locale_get_parameter'); |
| 100 | - $params[$param] = $countryCode; // Overwrite if exists |
|
| 100 | + $params[$param] = $countryCode; // Overwrite if exists |
|
| 101 | 101 | |
| 102 | 102 | // Note that this will url_encode all values |
| 103 | 103 | $urlParts['query'] = http_build_query($params); |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if (function_exists('http_build_url')) { |
| 107 | 107 | $newURL = http_build_url($urlParts); |
| 108 | 108 | } else { |
| 109 | - $newURL = $urlParts['scheme'] . '://' . $urlParts['host'] . $urlParts['path'] . '?' . $urlParts['query']; |
|
| 109 | + $newURL = $urlParts['scheme'].'://'.$urlParts['host'].$urlParts['path'].'?'.$urlParts['query']; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | if ($oldURL !== $newURL && self::$_redirection_count < 3) { |