Changeset 19982 for branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
- Timestamp:
- 2011/01/19 19:18:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
r19972 r19982 181 181 // プレビューの場合ページIDを0にセットする。 182 182 $page_id = '0'; 183 $url = 'preview ';183 $url = 'preview/index'; 184 184 185 185 $tmpPost = $_POST; 186 186 $tmpPost['page_id'] = $page_id; 187 187 $tmpPost['url'] = $url; 188 $tmpPost['tpl_dir'] = USER_REALDIR . "templates/preview/";188 $tmpPost['tpl_dir'] = "{$url}.tpl"; 189 189 190 190 $arrPreData = $this->objLayout->lfGetPageData("page_id = ? AND device_type_id = ?", … … 195 195 196 196 // TPLファイル作成 197 $cre_tpl = $this->objLayout->getTemplatePath($device_type_id) . $url . '.tpl';197 $cre_tpl = $this->objLayout->getTemplatePath($device_type_id) . "{$url}.tpl"; 198 198 $this->lfCreateFile($cre_tpl, $_POST['tpl_data']); 199 199 … … 319 319 if (!$this->objLayout->lfCheckBaseData($arrData['page_id'], $device_type_id)) { 320 320 $arrUpdData['page_name'] = $arrData['page_name'] ; 321 $arrUpdData['url'] = preg_replace('|^' . preg_quote(ROOT_URLPATH) . '|', '', 322 $this->objLayout->getUserDir($device_type_id) . $arrData['url'] . '.php'); 321 $arrUpdData['url'] = preg_replace('|^' . preg_quote(ROOT_URLPATH) . '|', '', $arrData['url'] . '.php'); 323 322 $arrUpdData['php_dir'] = dirname($arrUpdData['url']); 324 323 if ($arrUpdData['php_dir'] == '.') {
Note: See TracChangeset
for help on using the changeset viewer.