이미지 width 계산 이후 빠진 attributes 추가

This commit is contained in:
iz4blue
2015-07-11 20:22:31 +09:00
committed by chicpro
parent d5bd57cdfa
commit 2ccc407397

View File

@ -1309,7 +1309,7 @@ function view_file_link($file, $width, $height, $content='')
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file)) {
$img = '<a href="'.G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&amp;fn='.urlencode($file).'" target="_blank" class="view_image">';
$img .= '<img src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" alt="'.$content.'">';
$img .= '<img src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" alt="'.$content.'" '.$attr.'>';
$img .= '</a>';
return $img;