상품 에디터 이미지 삭제 이슈 관련 수정
This commit is contained in:
@ -71,6 +71,8 @@ if (!function_exists("itemdelete")) {
|
||||
|
||||
for($i=0;$i<count($imgs[1]);$i++) {
|
||||
$p = parse_url($imgs[1][$i]);
|
||||
if(strpos($p['path'], "/data/editor/") === false)
|
||||
continue;
|
||||
if(strpos($p['path'], "/data/") != 0)
|
||||
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
|
||||
else
|
||||
@ -86,6 +88,8 @@ if (!function_exists("itemdelete")) {
|
||||
|
||||
for($i=0;$i<count($imgs[1]);$i++) {
|
||||
$p = parse_url($imgs[1][$i]);
|
||||
if(strpos($p['path'], "/data/editor/") === false)
|
||||
continue;
|
||||
if(strpos($p['path'], "/data/") != 0)
|
||||
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user