썸네일생성 후 지정 이미지 사이즈 유지되지 않는 오류 수정

This commit is contained in:
chicpro
2013-12-13 09:27:39 +09:00
parent a2e6ba132d
commit 6a344d1438
2 changed files with 11 additions and 7 deletions

View File

@ -176,7 +176,7 @@ function get_view_thumbnail($contents, $thumb_width=0)
// $img_tag에 editor 경로가 있으면 원본보기 링크 추가
$img_tag = $matches[0][$i];
if(strpos($img_tag, 'data/editor') && preg_match("/\.({$config['cf_image_extension']})$/i", $filename)) {
$imgurl = str_replace(G5_URL, "", $img_tag);
$imgurl = str_replace(G5_URL, "", $src);
$thumb_tag = '<a href="'.G5_BBS_URL.'/view_image.php?fn='.urlencode($imgurl).'" target="_blank" class="view_image">'.$thumb_tag.'</a>';
}