에디터 이미지 추출을 get_editor_image() 함수로 대체

This commit is contained in:
chicpro
2013-02-21 18:12:26 +09:00
parent b27dc23b70
commit c5b505c625

View File

@ -30,8 +30,7 @@ function get_view_thumbnail($contents)
}
// $contents 중 img 태그 추출
$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+".str_replace(".", "\.", $_SERVER['HTTP_HOST'])."[^>\'\"]+)[\'\"]?[^>]*>/";
preg_match_all($pattern, $contents, $matchs);
$matchs = get_editor_image($contents);
for($i=0; $i<count($matchs[1]); $i++) {
// 이미지 path 구함