diff --git a/mobile/tail.php b/mobile/tail.php index b5d830adf..04b42d4a2 100644 --- a/mobile/tail.php +++ b/mobile/tail.php @@ -40,27 +40,32 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 $val) { - if($key == 'device') - continue; +if(G5_USE_MOBILE && G5_IS_MOBILE) { + $seq = 0; + $href = $_SERVER['PHP_SELF']; + if($_SERVER['QUERY_STRING']) { + $sep = '?'; + foreach($_GET as $key=>$val) { + if($key == 'device') + continue; - $href .= $sep.$key.'='.$val; - $sep = '&'; - $seq++; + $href .= $sep.$key.'='.$val; + $sep = '&'; + $seq++; + } } -} -if($seq) - $href .= '&device=pc'; -else - $href .= '?device=pc'; + if($seq) + $href .= '&device=pc'; + else + $href .= '?device=pc'; ?> - PC 버전으로 보기 - \ No newline at end of file diff --git a/tail.php b/tail.php index d31191f07..75a947b28 100644 --- a/tail.php +++ b/tail.php @@ -35,7 +35,7 @@ if ($config['cf_include_tail']) {