잘못된 상품정렬 url 코드 수정

This commit is contained in:
thisgun
2019-12-09 11:49:10 +09:00
parent 60614df33e
commit 581587031d
4 changed files with 24 additions and 12 deletions

View File

@ -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=';

View File

@ -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;

View File

@ -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=';

View File

@ -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;