From 5036254b695264d03e58d15f47a2e79c109033de Mon Sep 17 00:00:00 2001 From: kkigomi Date: Sun, 13 Aug 2023 21:43:29 +0900 Subject: [PATCH] =?UTF-8?q?php=205.2=20=ED=98=B8=ED=99=98=EC=84=B1=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemcopyupdate.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/adm/shop_admin/itemcopyupdate.php b/adm/shop_admin/itemcopyupdate.php index 8648f60c2..75200ee70 100644 --- a/adm/shop_admin/itemcopyupdate.php +++ b/adm/shop_admin/itemcopyupdate.php @@ -53,7 +53,7 @@ $opt_sql = " insert ignore into {$g5['g5_shop_item_option_table']} ( io_id, io_t sql_query($opt_sql); // html 에디터로 첨부된 이미지 파일 복사 -$copied_editor_images = []; +$copied_editor_images = array(); if($cp['it_explan']) { $matchs = get_editor_image($cp['it_explan'], false); $count_matchs = (isset($matchs[1]) && is_array($matchs[1])) ? count($matchs[1]) : 0; @@ -152,7 +152,7 @@ function copy_directory($src_dir, $dest_dir) } // 파일복사 -$copied_item_files = []; +$copied_item_files = array(); $dest_path = G5_DATA_PATH.'/item/'.$new_it_id; @mkdir($dest_path, G5_DIR_PERMISSION); @chmod($dest_path, G5_DIR_PERMISSION); @@ -169,10 +169,10 @@ for($i=1; $i<=10; $i++) { @chmod($dstfile, G5_FILE_PERMISSION); $new_img = $new_it_id.'/'.basename($file); - $copied_item_files[] = [ + $copied_item_files[] = array( 'original' => $file, 'new' => $dstfile, - ]; + ); } $sql_img .= $comma." it_img{$i} = '$new_img' "; @@ -192,13 +192,13 @@ sql_query($sql); * @var array $copied_item_files 복사한 파일 목록 * @var array $copied_editor_images 복사한 에디터 이미지 목록 */ -run_event('shop_admin_itemcopy', [ +run_event('shop_admin_itemcopy', array( 'it_id' => (string) $it_id, 'new_it_id' => (string) $new_it_id, 'cp' => $cp, 'copied_item_files' => $copied_item_files, 'copied_editor_images' => $copied_editor_images -]); +)); $qstr = "ca_id=$ca_id&sfl=$sfl&sca=$sca&page=$page&stx=".urlencode($stx);