Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php	(revision 19803)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php	(revision 19804)
@@ -23,5 +23,5 @@
 
 // {{{ requires
-require_once(CLASS_FILE_PATH . "pages/admin/LC_Page_Admin.php");
+require_once(CLASS_REALDIR . "pages/admin/LC_Page_Admin.php");
 
 /**
@@ -147,5 +147,4 @@
         $arrPageData = $this->objLayout->lfGetPageData("page_id = ? AND device_type_id = ?",
                                                        array($page_id, $device_type_id));
-        
 
         if (strlen($arrPageData[0]['filename']) == 0) {
@@ -187,5 +186,5 @@
         $tmpPost['page_id'] = $page_id;
         $tmpPost['url'] = $url;
-        $tmpPost['tpl_dir'] = USER_FILE_PATH . "templates/preview/";
+        $tmpPost['tpl_dir'] = USER_REALDIR . "templates/preview/";
 
         $arrPreData = $this->objLayout->lfGetPageData("page_id = ? AND device_type_id = ?",
@@ -233,5 +232,9 @@
         if (count($this->arrErr) == 0) {
             // DBへデータを更新する
-            $arrData = $this->lfEntryPageData($_POST, $device_type_id);
+            $arrTmp = $this->lfEntryPageData($_POST, $device_type_id);
+            $page_id = $arrTmp['page_id'];
+
+            $arrTmp = $this->objLayout->lfGetPageData('page_id = ? AND device_type_id = ?', array($page_id, $device_type_id));
+            $arrData = $arrTmp[0];
 
             // ベースデータでなければファイルを削除し、PHPファイルを作成する
@@ -291,4 +294,6 @@
             $objQuery->update('dtb_pagelayout', $sqlval, 'page_id = ? AND device_type_id = ?',
                               array($arrData['page_id'], $device_type_id));
+            // 戻り値用
+            $sqlval['page_id'] = $arrData['page_id'];
         }
         return $sqlval;
