diff --git a/adm/theme_config_load.php b/adm/theme_config_load.php index 544c5a6f7..a19a2a293 100644 --- a/adm/theme_config_load.php +++ b/adm/theme_config_load.php @@ -29,7 +29,7 @@ if(!in_array($type, $arr_type)) { } if($type == 'board') { - $keys = array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height', 'bo_image_width'); + $keys = run_replace('theme_config_load_keys', array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height', 'bo_image_width'), $type); $tconfig = get_theme_config_value($config['cf_theme'], implode(',', $keys)); $i = 0; @@ -43,7 +43,7 @@ if($type == 'board') { if($i == 0) $data['error'] = '적용할 게시판 이미지 설정이 없습니다.'; } else if($type == 'conf_skin') { - $keys = array('cf_new_skin', 'cf_mobile_new_skin', 'cf_search_skin', 'cf_mobile_search_skin', 'cf_connect_skin', 'cf_mobile_connect_skin', 'cf_faq_skin', 'cf_mobile_faq_skin'); + $keys = run_replace('theme_config_load_keys', array('cf_new_skin', 'cf_mobile_new_skin', 'cf_search_skin', 'cf_mobile_search_skin', 'cf_connect_skin', 'cf_mobile_connect_skin', 'cf_faq_skin', 'cf_mobile_faq_skin'), $type); $tconfig = get_theme_config_value($config['cf_theme'], implode(',', $keys)); @@ -58,7 +58,7 @@ if($type == 'board') { if($i == 0) $data['error'] = '적용할 기본환경 스킨 설정이 없습니다.'; } else if($type == 'conf_member') { - $keys = array('cf_member_skin', 'cf_mobile_member_skin'); + $keys = run_replace('theme_config_load_keys', array('cf_member_skin', 'cf_mobile_member_skin'), $type); $tconfig = get_theme_config_value($config['cf_theme'], implode(',', $keys)); diff --git a/adm/theme_update.php b/adm/theme_update.php index 1197f3078..4749fb893 100644 --- a/adm/theme_update.php +++ b/adm/theme_update.php @@ -68,5 +68,7 @@ if($_POST['set_default_skin'] == 1) { } } +run_event('adm_theme_update', $theme, $_POST['set_default_skin']); + die(''); ?> \ No newline at end of file