GX-Bug #54238 » SEOURLLanguageSwitchFix1.patch
src/templates/Honeygrid/smarty/function.url_param_to_hidden_fields.php (revision ) | ||
---|---|---|
12 | 12 |
function smarty_function_url_param_to_hidden_fields($params, &$smarty) |
13 | 13 |
{ |
14 | 14 |
$return = ''; |
15 |
|
|
15 | ||
16 |
$paramsString = xtc_get_all_get_params(array( |
|
16 |
$excludeParams = array( |
|
17 |
'language', |
|
18 |
'currency', |
|
19 |
'switch_country', |
|
20 |
'gm_boosted_category', |
|
21 |
'gm_boosted_content', |
|
17 |
'language', |
|
18 |
'currency', |
|
19 |
'switch_country', |
|
20 |
'gm_boosted_category', |
|
21 |
'gm_boosted_content', |
|
22 |
'gm_boosted_product' |
|
23 |
)); |
|
22 |
'gm_boosted_product', |
|
23 |
); |
|
24 | ||
25 |
if(gm_get_conf('GM_SEO_BOOST_CATEGORIES') == 'true') |
|
26 |
{ |
|
27 |
$excludeParams = array_merge($excludeParams,array('cat','cPath')); |
|
28 | ||
29 |
} |
|
30 |
if(gm_get_conf('GM_SEO_BOOST_PRODUCTS') == 'true') |
|
31 |
{ |
|
32 |
$excludeParams = array_merge($excludeParams,array('products_id')); |
|
33 |
} |
|
34 |
if(gm_get_conf('GM_SEO_BOOST_CONTENT') == 'true') |
|
35 |
{ |
|
36 |
$excludeParams = array_merge($excludeParams,array('coID')); |
|
37 |
} |
|
38 | ||
39 |
$paramsString = xtc_get_all_get_params($excludeParams); |
|
40 | ||
24 | 41 |
$paramsArray = explode('&', $paramsString); |
25 | 42 | |
26 | 43 |
foreach($paramsArray as $param) |