에디터 이미지 추출을 get_editor_image() 함수로 대체
This commit is contained in:
@ -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 구함
|
||||
|
||||
Reference in New Issue
Block a user