@@ -38,8 +38,9 @@ |
||
38 | 38 | public function CurrentCountrySegment($url = '', $includeGetVariable = true) |
39 | 39 | { |
40 | 40 | $potentialCountry = ''; |
41 | - if ($includeGetVariable) |
|
42 | - $getVar = Config::inst()->get('CountryURLProvider', 'locale_get_parameter'); |
|
41 | + if ($includeGetVariable) { |
|
42 | + $getVar = Config::inst()->get('CountryURLProvider', 'locale_get_parameter'); |
|
43 | + } |
|
43 | 44 | if(isset($_GET[$getVar])) { |
44 | 45 | $potentialCountry = $_GET[$getVar]; |
45 | 46 | } |