mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 21:29:58 +09:00
썸네일 생성시 임시 파일 삭제하는 코드에 에러 나오지 않도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2299 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6d4846c893
commit
2fbb87cb19
1 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@
|
|||
if(file_exists($thumbnail_file)) {
|
||||
$file_created_time = date("YmdHis",filectime($thumbnail_file));
|
||||
$modified_time = $this->get('last_update');
|
||||
if($modified_time > $file_created_time) unlink($thumbnail_file);
|
||||
if($modified_time > $file_created_time) @unlink($thumbnail_file);
|
||||
}
|
||||
|
||||
if(file_exists($thumbnail_file)&&filesize($thumbnail_file)<1) return;
|
||||
|
|
@ -327,7 +327,7 @@
|
|||
}
|
||||
|
||||
FileHandler::createImageFile($tmp_file, $thumbnail_file, $width, $width, 'jpg');
|
||||
unlink($tmp_file);
|
||||
@unlink($tmp_file);
|
||||
|
||||
return Context::getRequestUri().$thumbnail_file;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue