From c7c4b574705924981ab03672fe6572cf063d26ce Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 20 Sep 2007 06:35:06 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=EC=9D=98=20?= =?UTF-8?q?=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EB=A7=8C=EB=93=A4=EB=95=8C=20?= =?UTF-8?q?=EA=B0=80=EB=A1=9C=EC=99=80=20=EC=84=B8=EB=A1=9C=20=ED=81=AC?= =?UTF-8?q?=EA=B8=B0=EA=B0=80=20=EB=8B=A4=EB=A5=B4=EB=A9=B4=20=EC=8D=B8?= =?UTF-8?q?=EB=84=A4=EC=9D=BC=20=ED=8C=8C=EC=9D=BC=EC=9D=B4=EB=A6=84?= =?UTF-8?q?=EC=9D=84=20=EB=8B=A4=EB=A5=B4=EA=B2=8C=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=ED=95=98=EA=B3=A0=20=EA=B2=B9=EC=B9=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2636 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.item.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 8d839c0e2..3766cd4d5 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -275,7 +275,7 @@ return true; } - function getThumbnail($width = 80, $height = 80) { + function getThumbnail($width = 80, $height = 0) { if(!$height) $height = $width; // 문서의 이미지 첨부파일 위치를 구함 @@ -283,7 +283,8 @@ if(!is_dir($document_path)) FileHandler::makeDir($document_path); // 썸네일 임시 파일명을 구함 - $thumbnail_file = sprintf('%sthumbnail_%d.jpg', $document_path, $width); + if($width != $height) $thumbnail_file = sprintf('%sthumbnail_%dx%d.jpg', $document_path, $width, $height); + else $thumbnail_file = sprintf('%sthumbnail_%d.jpg', $document_path, $width); // 썸네일이 있더라도 글의 수정시간과 비교해서 다르면 다시 생성함 if(file_exists($thumbnail_file)) {