mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
문서의 썸네일 생성 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4335 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
92d7bea780
commit
379f3f4758
2 changed files with 4 additions and 4 deletions
|
|
@ -227,8 +227,8 @@
|
|||
* @brief 특정 이미지 파일을 특정 위치로 옮김 (옮길때 이미지의 크기를 리사이징할 수 있음..)
|
||||
**/
|
||||
function createImageFile($source_file, $target_file, $resize_width = 0, $resize_height = 0, $target_type = '', $thumbnail_type = 'crop') {
|
||||
$source_file = FileHandler::getRequestUri($source_file);
|
||||
$target_file = FileHandler::getRequestUri($target_file);
|
||||
$source_file = FileHandler::getRealPath($source_file);
|
||||
$target_file = FileHandler::getRealPath($target_file);
|
||||
|
||||
if(!file_exists($source_file)) return;
|
||||
if(!$resize_width) $resize_width = 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue