Changeset 16935
- Timestamp:
- 2007/12/20 12:30:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/admin/design/LC_Page_Admin_Design.php
r16741 r16935 121 121 if ($_POST['mode'] == 'preview') { 122 122 $page_id = '0'; 123 } 123 } 124 124 $masterData = new SC_DB_MasterData_Ex(); 125 125 $arrTarget = $masterData->getMasterData("mtb_target"); 126 126 127 127 // 更新用にデータを整える 128 128 $arrUpdBlocData = array(); … … 159 159 $arrUpdBlocData[$key]['bloc_row'] = $bloc_row; 160 160 $arrUpdBlocData[$key]['page_id'] = $page_id; // ページID 161 161 162 162 /* 163 163 ターゲットID 1:レフトナビ 2:ライトナビ 3:イン画面上部 4:メイン画面下部 5:欄外 … … 431 431 $arrUpdData = array(); // 更新データ生成用 432 432 $filename = $arrPageData[0]['filename']; 433 433 434 434 $arrPreData = $objLayout->lfgetPageData(" page_id = ? " , array("0")); 435 435 436 // tplファイルの削除436 // XXX tplファイルの削除 437 437 $del_tpl = USER_PATH . "templates/" . $filename . '.tpl'; 438 438 … … 446 446 if($filename == ""){ 447 447 $tplfile = TEMPLATE_DIR . "mypage/index"; 448 $filename = 'mypage'; 448 449 } 449 450 450 451 // プレビュー用tplファイルのコピー 451 copy($tplfile . ".tpl", USER_PATH . "templates/" 452 . TEMPLATE_NAME . "/" . $filename . ".tpl"); 452 $copyTo = USER_PATH . "templates/preview/" . TEMPLATE_NAME . "/" . $filename . ".tpl"; 453 454 if (!is_dir(dirname($copyTo))) { 455 mkdir(dirname($copyTo)); 456 } 457 458 copy($tplfile . ".tpl", $copyTo); 453 459 454 460 // 更新データの取得
Note: See TracChangeset
for help on using the changeset viewer.