@@ -225,8 +225,7 @@ |
||
| 225 | 225 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($link); |
| 226 | 226 | if($hasCountrySegment){ |
| 227 | 227 | $link = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($this->EcommerceCountry()->Code, $link); |
| 228 | - } |
|
| 229 | - else { |
|
| 228 | + } else { |
|
| 230 | 229 | $link = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($this->EcommerceCountry()->Code, $link); |
| 231 | 230 | } |
| 232 | 231 | } |
@@ -120,8 +120,7 @@ |
||
| 120 | 120 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($url); |
| 121 | 121 | if($hasCountrySegment){ |
| 122 | 122 | $url = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($newCountryCode, $url); |
| 123 | - } |
|
| 124 | - else { |
|
| 123 | + } else { |
|
| 125 | 124 | $url = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($newCountryCode, $url); |
| 126 | 125 | } |
| 127 | 126 | return $url.$query; |
@@ -101,8 +101,7 @@ |
||
| 101 | 101 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($oldURL); |
| 102 | 102 | if($hasCountrySegment){ |
| 103 | 103 | $newURL = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($countryCode, $oldURL); |
| 104 | - } |
|
| 105 | - else { |
|
| 104 | + } else { |
|
| 106 | 105 | $newURL = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($countryCode, $oldURL); |
| 107 | 106 | } |
| 108 | 107 | if ($oldURL !== $newURL && self::$_redirection_count < 3) { |