From 27404bb4b9494b5501088af86c602a624357672a Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 16:36:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EC=8B=A0=EA=B8=80=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=EC=9D=80=20=EC=8A=A4=ED=82=A8=EB=B3=84=EB=A1=9C=20.cs?= =?UTF-8?q?s=20=ED=95=9C=EB=B2=88=EB=A7=8C=20=EB=A1=9C=EB=94=A9=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/latest.lib.php | 7 +++++++ skin/latest/basic/latest.skin.php | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/latest.lib.php b/lib/latest.lib.php index f81eb7c79..2d0312558 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -5,6 +5,7 @@ if (!defined('_GNUBOARD_')) exit; function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) { global $g4; + static $css = array(); if (!$skin_dir) $skin_dir = 'basic'; @@ -38,6 +39,12 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) include_once($cache_file); + // 같은 스킨은 .css 를 한번만 호출한다. + if (!in_array($skin_dir, $css)) { + echo ''; + $css[] = $skin_dir; + } + ob_start(); include $latest_skin_path.'/latest.skin.php'; $content = ob_get_contents(); diff --git a/skin/latest/basic/latest.skin.php b/skin/latest/basic/latest.skin.php index c89558fa8..712bc3f91 100644 --- a/skin/latest/basic/latest.skin.php +++ b/skin/latest/basic/latest.skin.php @@ -2,8 +2,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 ?> - -