관련상품등록 관련 스크립트 수정

This commit is contained in:
chicpro
2013-02-04 14:00:57 +09:00
parent 335f5975c6
commit 31ebc0df87
4 changed files with 59 additions and 36 deletions

View File

@ -80,6 +80,7 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
imagepng($dst, $thumb_file, 0); // 0 (no compression) ~ 9
chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
return str_replace($target_path.'/', '', $thumb_file);
return basename($thumb_file);
}
?>