Changeset 19768 for branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php
- Timestamp:
- 2010/12/25 20:58:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php
r19737 r19768 97 97 // 登録時はプレビュー用テンプレートをコピーする 98 98 if ($_POST['mode'] == 'confirm'){ 99 copy($pre_DIR.$division.".tpl", $this->objLayout->getTemplatePath($device_type_id , true) . $division . ".tpl");99 copy($pre_DIR.$division.".tpl", $this->objLayout->getTemplatePath($device_type_id) . $division . ".tpl"); 100 100 // 完了メッセージ(プレビュー時は表示しない) 101 101 $this->tpl_onload="alert('登録が完了しました。');"; … … 122 122 // ユーザーパスにテンプレートが存在しなければ, 123 123 // 指定テンプレートから読み込む 124 $header_tpl = $this->objLayout->getTemplatePath($device_type_id, true) . "header.tpl"; 125 if (!is_file($header_tpl)) { 126 $header_tpl = $this->objLayout->getTemplatePath($device_type_id) . "header.tpl"; 127 } 128 $footer_tpl = $this->objLayout->getTemplatePath($device_type_id, true) . "footer.tpl"; 129 if (!is_file($footer_tpl)) { 130 $footer_tpl = $this->objLayout->getTemplatePath($device_type_id) . "footer.tpl"; 131 } 124 $header_tpl = $this->objLayout->getTemplatePath($device_type_id) . "header.tpl"; 125 $footer_tpl = $this->objLayout->getTemplatePath($device_type_id) . "footer.tpl"; 132 126 133 127 copy($header_tpl, $pre_DIR . "header.tpl");
Note: See TracChangeset
for help on using the changeset viewer.