외부이미지의 썸네일을 생성하지 못하는 문제 수정 (변수명 오타)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4340 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-07-05 15:17:05 +00:00
parent 96b6fb9727
commit c4fdd3fc47

View file

@ -486,8 +486,8 @@
$target_src = null;
preg_match_all("!http:\/\/([^ ^\"^']*?)\.(jpg|png|gif|jpeg|bmp)!is", $content, $matches, PREG_SET_ORDER);
for($i=0;$i<count($matches);$i++) {
$src = $matches[$i][0];
if(preg_match('/\/(common|modules|widgets|addons|layouts)\//i', $src)) continue;
$target_src = $matches[$i][0];
if(preg_match('/\/(common|modules|widgets|addons|layouts)\//i', $target_src)) continue;
else {
$tmp_file = sprintf('./files/cache/tmp/%d', md5(rand(111111,999999).$this->document_srl));
FileHandler::getRemoteFile($target_src, $tmp_file);