From 809a8a6e9b77af4b379769cf1f820d13b8396665 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 22 Apr 2013 14:28:00 +0900 Subject: [PATCH] =?UTF-8?q?link=20=EC=97=90=EC=84=9C=20=EC=99=B8=EB=B6=80?= =?UTF-8?q?=20css=20=ED=8C=8C=EC=9D=BC=EC=9D=B4=20=EA=B2=B9=EC=B9=98?= =?UTF-8?q?=EB=8A=94=20=EA=B2=BD=EC=9A=B0=EA=B0=80=20=EC=9E=88=EC=96=B4=20?= =?UTF-8?q?=EB=B2=84=ED=8D=BC=EB=A7=81=20=EC=86=8C=EC=8A=A4=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EB=B3=B4=EC=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 7 ++++--- lib/latest.lib.php | 2 ++ skin/latest/basic/latest.skin.php | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index b1f75f4a0..056681f0a 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1961,9 +1961,10 @@ function html_end() preg_match('#(.*)#is', $buffer, $bodys); preg_match_all('/]+>/i', $bodys[0], $links); $stylesheet = ''; - for ($i=0; $i$link) { + //$link = PHP_EOL.$links[0][$i]; + $stylesheet .= PHP_EOL.$link; $buffer = preg_replace('#'.$link.'#', '', $buffer); } return preg_replace('#()#', "$1$stylesheet", $buffer); diff --git a/lib/latest.lib.php b/lib/latest.lib.php index a22cc4fbf..eb82e7d65 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -39,11 +39,13 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) include_once($cache_file); + /* // 같은 스킨은 .css 를 한번만 호출한다. if (!in_array($skin_dir, $css) && is_file($latest_skin_path.'/style.css')) { echo ''; $css[] = $skin_dir; } + */ ob_start(); include $latest_skin_path.'/latest.skin.php'; diff --git a/skin/latest/basic/latest.skin.php b/skin/latest/basic/latest.skin.php index 51184902b..55e08d98d 100644 --- a/skin/latest/basic/latest.skin.php +++ b/skin/latest/basic/latest.skin.php @@ -2,6 +2,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 ?> + +