page= 두개씩 나오지 않도록 해결
This commit is contained in:
@ -47,14 +47,14 @@ if (!$board['bo_use_list_view']) {
|
||||
$prev_href = '';
|
||||
if (isset($prev['wr_id']) && $prev['wr_id']) {
|
||||
$prev_wr_subject = get_text(cut_str($prev['wr_subject'], 255));
|
||||
$prev_href = './board.php?bo_table='.$bo_table.'&wr_id='.$prev['wr_id'].'&page='.$page.$qstr;
|
||||
$prev_href = './board.php?bo_table='.$bo_table.'&wr_id='.$prev['wr_id'].$qstr;
|
||||
}
|
||||
|
||||
// 다음글 링크
|
||||
$next_href = '';
|
||||
if (isset($next['wr_id']) && $next['wr_id']) {
|
||||
$next_wr_subject = get_text(cut_str($next['wr_subject'], 255));
|
||||
$next_href = './board.php?bo_table='.$bo_table.'&wr_id='.$next['wr_id'].'&page='.$page.$qstr;
|
||||
$next_href = './board.php?bo_table='.$bo_table.'&wr_id='.$next['wr_id'].$qstr;
|
||||
}
|
||||
|
||||
// 쓰기 링크
|
||||
|
||||
@ -18,6 +18,8 @@ function get_microtime()
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$url = preg_replace('#(&|&)?page\=[0-9]+#', '', $url);
|
||||
|
||||
$str = '';
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="pg_page pg_start">처음</a>'.PHP_EOL;
|
||||
@ -801,7 +803,7 @@ function get_category_option($bo_table='', $ca_name='')
|
||||
$category = trim($arr[$i]);
|
||||
if (!$category) continue;
|
||||
|
||||
$str .= "<option value=\"$arr[$i]\"";
|
||||
$str .= "<lioption value=\"$arr[$i]\"";
|
||||
if ($category == $ca_name) {
|
||||
$str .= ' selected="selected"';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user