diff --git a/mobile/skin/shop/basic/list.sort.skin.php b/mobile/skin/shop/basic/list.sort.skin.php index 2897bc526..6c0e58c45 100644 --- a/mobile/skin/shop/basic/list.sort.skin.php +++ b/mobile/skin/shop/basic/list.sort.skin.php @@ -2,10 +2,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $sct_sort_href = $_SERVER['SCRIPT_NAME'].'?'; -if($ca_id) - $sct_sort_href .= 'ca_id='.$ca_id; -else if($ev_id) + +if($ca_id) { + $shop_category_url = shop_category_url($ca_id); + $sct_sort_href = (strpos($shop_category_url, '?') === false) ? $shop_category_url.'?1=1' : $shop_category_url; +} else if($ev_id) { $sct_sort_href .= 'ev_id='.$ev_id; +} + if($skin) $sct_sort_href .= '&skin='.$skin; $sct_sort_href .= '&sort='; diff --git a/skin/shop/basic/list.sort.skin.php b/skin/shop/basic/list.sort.skin.php index ad19e92e0..b5ba4c0fd 100644 --- a/skin/shop/basic/list.sort.skin.php +++ b/skin/shop/basic/list.sort.skin.php @@ -3,10 +3,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $sct_sort_href = $_SERVER['SCRIPT_NAME'].'?'; -if($ca_id) - $sct_sort_href = shop_category_url($ca_id).'?1=1'; -else if($ev_id) +if($ca_id) { + $shop_category_url = shop_category_url($ca_id); + $sct_sort_href = (strpos($shop_category_url, '?') === false) ? $shop_category_url.'?1=1' : $shop_category_url; +} else if($ev_id) { $sct_sort_href .= 'ev_id='.$ev_id; +} if($skin) $sct_sort_href .= '&skin='.$skin; diff --git a/theme/basic/mobile/skin/shop/basic/list.sort.skin.php b/theme/basic/mobile/skin/shop/basic/list.sort.skin.php index 2897bc526..6c0e58c45 100644 --- a/theme/basic/mobile/skin/shop/basic/list.sort.skin.php +++ b/theme/basic/mobile/skin/shop/basic/list.sort.skin.php @@ -2,10 +2,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $sct_sort_href = $_SERVER['SCRIPT_NAME'].'?'; -if($ca_id) - $sct_sort_href .= 'ca_id='.$ca_id; -else if($ev_id) + +if($ca_id) { + $shop_category_url = shop_category_url($ca_id); + $sct_sort_href = (strpos($shop_category_url, '?') === false) ? $shop_category_url.'?1=1' : $shop_category_url; +} else if($ev_id) { $sct_sort_href .= 'ev_id='.$ev_id; +} + if($skin) $sct_sort_href .= '&skin='.$skin; $sct_sort_href .= '&sort='; diff --git a/theme/basic/skin/shop/basic/list.sort.skin.php b/theme/basic/skin/shop/basic/list.sort.skin.php index ad19e92e0..b5ba4c0fd 100644 --- a/theme/basic/skin/shop/basic/list.sort.skin.php +++ b/theme/basic/skin/shop/basic/list.sort.skin.php @@ -3,10 +3,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $sct_sort_href = $_SERVER['SCRIPT_NAME'].'?'; -if($ca_id) - $sct_sort_href = shop_category_url($ca_id).'?1=1'; -else if($ev_id) +if($ca_id) { + $shop_category_url = shop_category_url($ca_id); + $sct_sort_href = (strpos($shop_category_url, '?') === false) ? $shop_category_url.'?1=1' : $shop_category_url; +} else if($ev_id) { $sct_sort_href .= 'ev_id='.$ev_id; +} if($skin) $sct_sort_href .= '&skin='.$skin;