Index: /temp/trunk/html/admin/design/template.php
===================================================================
--- /temp/trunk/html/admin/design/template.php	(revision 10521)
+++ /temp/trunk/html/admin/design/template.php	(revision 10533)
@@ -252,10 +252,16 @@
 	
 	$chk_tpl = $_POST['check_template'];
-	
+	$taget_tpl_path = $tpl_path . $chk_tpl . "/templates/";
+	$taget_inc_path = $tpl_path . $chk_tpl . "/include/";
+	$taget_css_path = $tpl_path . $chk_tpl . "/css/";
+	$save_tpl_path = $tpl_path;
+	
+	
+	/*
 	// ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
 	$objQuery = new SC_Query();
 	$sql = "SELECT template_code,template_name FROM dtb_templates WHERE template_code = ?";
 	$arrTemplate = $objQuery->getall($sql, array($chk_tpl));	
-	
+	*/
 	switch($objPage->tpl_subno_template) {
 		// TOP
@@ -286,14 +292,15 @@
 			break;
 	}
-	
+	/*
 	$taget_tpl_path = $tpl_path . $arrTemplate[0]['template_code'] . "/templates/";
 	$taget_inc_path = $tpl_path . $arrTemplate[0]['template_code'] . "/include/";
 	$taget_css_path = $tpl_path . $arrTemplate[0]['template_code'] . "/css/";
+	*/
 	$save_tpl_path = $tpl_path;
 
 	// ²èÁü¥Ñ¥¹¤ò½ñ¤­´¹¤¨
-	$path = $tpl_path . $arrTemplate[0]['template_code'] . "/";
+	$path = $tpl_path . $chk_tpl . "/";
 	$img_path = '<!--{$smarty.const.URL_DIR}-->img/';
-	$displace_path = '<!--{$smarty.const.URL_DIR}-->'. USER_DIR . 'templates/' . $arrTemplate[0]['template_code'] . '/img/';
+	$displace_path = '<!--{$smarty.const.URL_DIR}-->'. USER_DIR . 'templates/' . $chk_tpl . '/img/';
 	$fs = new File_SearchReplace($img_path, $displace_path, "", $path, true); 
 	$fs->doSearch(); 
