잘못된 코드 수정

This commit is contained in:
thisgun committed 2019-09-10 10:54:34 +09:00
1 parent a0b9cd39cb
commit 545d081f2d
13 files changed
+46 -30

No files matched your search

+2 -2
View File
@@ -83,8 +83,8 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
function get_file_thumbnail($file){
if( ! is_array($file) ) return '';
if( $contents = run_replace('get_file_thumbnail_tags', '', $file) ){
if( preg_match('/(\.jpg|\.jpeg|\.gif|\.png|\.bmp)$/i', $file['file']) && $contents = run_replace('get_file_thumbnail_tags', '', $file) ){
return $contents;
} else if ($file['view']) {
return get_view_thumbnail($file['view']);