diff --git a/web/html/theme/FT_WEB20/head.sub.php b/web/html/theme/FT_WEB20/head.sub.php index d3edca6..622d3f2 100644 --- a/web/html/theme/FT_WEB20/head.sub.php +++ b/web/html/theme/FT_WEB20/head.sub.php @@ -4,6 +4,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 $g5_debug['php']['begin_time'] = $begin_time = get_microtime(); + // 게시판이고 page가 선언되지 않거나 0인 경우 '페이지' 문구 제거 +if (isset($bo_table)) { + global $page; + if (!$page || $page < 1) { + $g5['title'] = preg_replace('/\s*[0-9]*\s*페이지/u', '', $g5['title']); + } +} + if (!isset($g5['title'])) { $g5['title'] = $config['cf_title']; $g5_head_title = $g5['title'];