mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 01:42:14 +09:00
#17302839 외부 이미지 링크시 썸네일을 구하지 못하는 문제 해결. ./files/cache/tmp 디렉토리가 없을때 생기는 현상
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4698 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9a439062de
commit
a46d544809
1 changed files with 1 additions and 0 deletions
|
|
@ -488,6 +488,7 @@
|
|||
else {
|
||||
if(!preg_match('/^(http|https):\/\//i',$target_src)) $target_src = Context::getRequestUri().$target_src;
|
||||
$tmp_file = sprintf('./files/cache/tmp/%d', md5(rand(111111,999999).$this->document_srl));
|
||||
if(!is_dir('./files/cache/tmp')) FileHandler::makeDir('./files/cache/tmp');
|
||||
FileHandler::getRemoteFile($target_src, $tmp_file);
|
||||
if(!file_exists($tmp_file)) continue;
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue