mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
썸네일 보여주는 부분 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2251 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dd4c35cc35
commit
8a02e8a75c
1 changed files with 2 additions and 1 deletions
|
|
@ -285,7 +285,7 @@
|
||||||
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 Context::getRequestUri()."common/tpl/images/blank.gif";
|
if(file_exists($thumbnail_file)&&filesize($thumbnail_file)<1) return;
|
||||||
|
|
||||||
// 썸네일 파일이 있으면 url return
|
// 썸네일 파일이 있으면 url return
|
||||||
if(file_exists($thumbnail_file)) return Context::getRequestUri().$thumbnail_file;
|
if(file_exists($thumbnail_file)) return Context::getRequestUri().$thumbnail_file;
|
||||||
|
|
@ -298,6 +298,7 @@
|
||||||
if(count($file_list)) {
|
if(count($file_list)) {
|
||||||
foreach($file_list as $key => $val) {
|
foreach($file_list as $key => $val) {
|
||||||
if(eregi("^thumbnail_([0-9]+)\.(jpg|gif)$",$val)) continue;
|
if(eregi("^thumbnail_([0-9]+)\.(jpg|gif)$",$val)) continue;
|
||||||
|
if(!eregi("\.(jpg|gif|png|jpeg)$", $val)) continue;
|
||||||
|
|
||||||
$filename = sprintf("%s%s",$document_path,$val);
|
$filename = sprintf("%s%s",$document_path,$val);
|
||||||
if(file_exists($filename)) {
|
if(file_exists($filename)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue