diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index b172ef52b..480cf46c2 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -82,29 +82,22 @@ function itemdelete($it_id) //------------------------------------------------------------------------ // HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함 //------------------------------------------------------------------------ - $sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' "; + $sql = " select it_explan from {$g4['yc4_item_table']} where it_id = '$it_id' "; $it = sql_fetch($sql); - $s = $it['it_explan']; - $img_file = Array(); - while($s) { - $pos = strpos($s, "/data/cheditor"); - $s = substr($s, $pos, strlen($s)); - $pos = strpos($s, '"'); + $imgs = get_editor_image($it['it_explan']); - // 결과값 - $file_path = substr($s, 0, $pos); - if (!$file_path) break; + for($i=0;$i