mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
thumbnail language update.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7985 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aa861218f5
commit
387a574a20
1 changed files with 423 additions and 423 deletions
|
|
@ -349,12 +349,12 @@
|
||||||
// 문서 모듈의 기본 설정에서 Thumbnail의 생성 방법을 구함
|
// 문서 모듈의 기본 설정에서 Thumbnail의 생성 방법을 구함
|
||||||
if(!in_array($thumbnail_type, array('crop','ratio'))) $thumbnail_type = 'crop';
|
if(!in_array($thumbnail_type, array('crop','ratio'))) $thumbnail_type = 'crop';
|
||||||
|
|
||||||
// 썸네일 정보 정의
|
// 섬네일 정보 정의
|
||||||
$thumbnail_path = sprintf('files/cache/thumbnails/%s',getNumberingPath($this->comment_srl, 3));
|
$thumbnail_path = sprintf('files/cache/thumbnails/%s',getNumberingPath($this->comment_srl, 3));
|
||||||
$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, $width, $height, $thumbnail_type);
|
$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, $width, $height, $thumbnail_type);
|
||||||
$thumbnail_url = Context::getRequestUri().$thumbnail_file;
|
$thumbnail_url = Context::getRequestUri().$thumbnail_file;
|
||||||
|
|
||||||
// 썸네일 파일이 있을 경우 파일의 크기가 0 이면 return false 아니면 경로 return
|
// 섬네일 파일이 있을 경우 파일의 크기가 0 이면 return false 아니면 경로 return
|
||||||
if(file_exists($thumbnail_file)) {
|
if(file_exists($thumbnail_file)) {
|
||||||
if(filesize($thumbnail_file)<1) return false;
|
if(filesize($thumbnail_file)<1) return false;
|
||||||
else return $thumbnail_url;
|
else return $thumbnail_url;
|
||||||
|
|
@ -410,10 +410,10 @@
|
||||||
|
|
||||||
if($is_tmp_file) FileHandler::removeFile($source_file);
|
if($is_tmp_file) FileHandler::removeFile($source_file);
|
||||||
|
|
||||||
// 썸네일 생성 성공시 경로 return
|
// 섬네일 생성 성공시 경로 return
|
||||||
if($output) return $thumbnail_url;
|
if($output) return $thumbnail_url;
|
||||||
|
|
||||||
// 차후 다시 썸네일 생성을 시도하지 않기 위해 빈 파일을 생성
|
// 차후 다시 섬네일 생성을 시도하지 않기 위해 빈 파일을 생성
|
||||||
else FileHandler::writeFile($thumbnail_file, '','w');
|
else FileHandler::writeFile($thumbnail_file, '','w');
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue