Changeset 17567 for branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
- Timestamp:
- 2008/08/28 08:53:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r17193 r17567 138 138 139 139 $template_code = $objForm->getValue('template_code_temp'); 140 if ($template_code == $this->lfGetNowTemplate()) {140 if ($template_code == DEFAULT_TEMPLATE_NAME) { 141 141 $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 142 142 break; … … 173 173 // defaultパラメータのセット 174 174 $this->templates = $this->lfGetAllTemplates(); 175 $this->now_template = $this->lfGetNowtemplate();175 $this->now_template = DEFAULT_TEMPLATE_NAME; 176 176 177 177 // 画面の表示 … … 224 224 225 225 return $objForm; 226 }227 228 /**229 * 現在適用しているテンプレートパッケージ名を取得する.230 *231 * @param void232 * @return string テンプレートパッケージ名233 */234 function lfGetNowTemplate() {235 $objQuery = new SC_Query();236 $arrRet = $objQuery->select('top_tpl', 'dtb_baseinfo');237 if (isset($arrRet[0]['top_tpl'])) {238 return $arrRet[0]['top_tpl'];239 }240 return null;241 226 } 242 227
Note: See TracChangeset
for help on using the changeset viewer.