Skip to content

Commit

Permalink
php 5.2 호환성 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kkigomi committed Aug 13, 2023
1 parent 2ae4046 commit 5036254
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions adm/shop_admin/itemcopyupdate.php
Expand Up @@ -53,7 +53,7 @@
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;
Expand Down Expand Up @@ -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);
Expand All @@ -169,10 +169,10 @@ function copy_directory($src_dir, $dest_dir)
@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' ";
Expand All @@ -192,13 +192,13 @@ function copy_directory($src_dir, $dest_dir)
* @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);

Expand Down

0 comments on commit 5036254

Please sign in to comment.