갤러리 리스트 썸네일 생성시 이미지인지 체크하는 코드 추가

This commit is contained in:
chicpro
2013-03-21 11:02:54 +09:00
parent 2593ff9c08
commit 868af92760

View File

@ -41,6 +41,10 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
$srcfile = G4_PATH.str_replace(G4_URL, "", $matchs[1][$i]);
if(preg_match("/\.({$config['cf_image_extension']})$/i", $srcfile) && is_file($srcfile)) {
$size = @getimagesize($srcfile);
if(empty($size))
continue;
$filename = basename($srcfile);
$filepath = dirname($srcfile);