Changeset 4340 for sandbox

Show
Ignore:
Timestamp:
07/06/2008 12:17:05 AM (2 months ago)
Author:
bnu
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/modules/document/document.item.php

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