에디터에서 첨부된 아이콘 이미지가 썸네일 생성되는 문제 수정
This commit is contained in:
@ -34,6 +34,9 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
|
||||
else
|
||||
$data_path = $p['path'];
|
||||
|
||||
if(!preg_match('/^\/'.G4_DATA_DIR.'/', $data_path))
|
||||
continue;
|
||||
|
||||
$srcfile = G4_PATH.$data_path;
|
||||
|
||||
if(preg_match("/\.({$config['cf_image_extension']})$/i", $srcfile) && is_file($srcfile)) {
|
||||
@ -107,6 +110,9 @@ function get_view_thumbnail($contents)
|
||||
else
|
||||
$data_path = $p['path'];
|
||||
|
||||
if(!preg_match('/^\/'.G4_DATA_DIR.'/', $data_path))
|
||||
continue;
|
||||
|
||||
$srcfile = G4_PATH.$data_path;
|
||||
|
||||
if(is_file($srcfile)) {
|
||||
|
||||
Reference in New Issue
Block a user