Changeset 17647
- Timestamp:
- 2008/10/07 12:19:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r17615 r17647 69 69 $this->arrErr = array(); 70 70 $this->arrForm = array(); 71 $this->tpl_select = DEFAULT_TEMPLATE_NAME;71 $this->tpl_select = TEMPLATE_NAME; 72 72 ini_set("max_execution_time", 300); 73 73 } … … 139 139 //現在使用中のテンプレートとデフォルトのテンプレートは削除できないようにする 140 140 $template_code = $objForm->getValue('template_code_temp'); 141 if ($template_code == DEFAULT_TEMPLATE_NAME || $template_code == 'default') {141 if ($template_code == TEMPLATE_NAME || $template_code == DEFAULT_TEMPLATE_NAME) { 142 142 $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 143 143 break; … … 173 173 // defaultパラメータのセット 174 174 $this->templates = $this->lfGetAllTemplates(); 175 $this->now_template = DEFAULT_TEMPLATE_NAME; 176 175 $this->now_template = TEMPLATE_NAME; 177 176 // 画面の表示 178 177 $objView->assignobj($this); … … 232 231 $objQuery = new SC_Query(); 233 232 $sqlval['name'] = "\"" . $template_code . "\""; 234 $objQuery->update("mtb_constants", $sqlval, "id = ?", array(' DEFAULT_TEMPLATE_NAME'));233 $objQuery->update("mtb_constants", $sqlval, "id = ?", array('TEMPLATE_NAME')); 235 234 // キャッシュを生成 236 235 $masterData = new SC_DB_MasterData_Ex();
Note: See TracChangeset
for help on using the changeset viewer.