최신글에서 style 파일 유무 체크 코드 추가
This commit is contained in:
@ -40,7 +40,7 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40)
|
|||||||
include_once($cache_file);
|
include_once($cache_file);
|
||||||
|
|
||||||
// 같은 스킨은 .css 를 한번만 호출한다.
|
// 같은 스킨은 .css 를 한번만 호출한다.
|
||||||
if (!in_array($skin_dir, $css)) {
|
if (!in_array($skin_dir, $css) && is_file($latest_skin_path.'/style.css')) {
|
||||||
echo '<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">';
|
echo '<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">';
|
||||||
$css[] = $skin_dir;
|
$css[] = $skin_dir;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user