Index: /temp/trunk/html/admin/design/template.php
===================================================================
--- /temp/trunk/html/admin/design/template.php	(revision 10518)
+++ /temp/trunk/html/admin/design/template.php	(revision 10519)
@@ -6,6 +6,7 @@
  */
 require_once("../../require.php");
-require_once(DATA_PATH. "module/Tar.php");
-require_once(DATA_PATH. "include/file_manager.inc");
+require_once(DATA_PATH . "module/Tar.php");
+require_once(DATA_PATH . "include/file_manager.inc");
+require_once(DATA_PATH . "module/SearchReplace.php");
 
 class LC_Page {
@@ -292,11 +293,4 @@
 
 	// ²èÁü¥Ñ¥¹¤ò½ñ¤­´¹¤¨
-	
-	readfile($save_tpl_path . "top.tpl");
-	
-	'<!--{$smarty.const.URL_DIR}-->img/';
-	require_once(HTML_PATH . "../data/module/SearchReplace.php");
-	
-	// phpspot.net¤È¤¤¤¦Ê¸»úÎó¤òphpspot.org¤ËÃÖ´¹¤¹¤ë 
 	$path = $tpl_path . $arrTemplate[0]['template_code'] . "/";
 	$img_path = '<!--{$smarty.const.URL_DIR}-->img/';
@@ -304,5 +298,4 @@
 	$fs = new File_SearchReplace($img_path, $displace_path, "", $path, true); 
 	$fs->doSearch(); 
-	
 	
 	// TOP¤òÊÑ¹¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊÑ¹¹
@@ -333,4 +326,8 @@
 		copy($taget_tpl_path . $tpl_name, $save_tpl_path . $tpl_name);
 	}
+
+	// ²èÁü¥Ñ¥¹¤ò¸µ¤ËÌá¤¹	
+	$fs = new File_SearchReplace($displace_path, $img_path, "", $path, true); 
+	$fs->doSearch(); 
 }
 
