Ignore:
Timestamp:
2008/08/28 08:53:24 (16 years ago)
Author:
Seasoft
Message:

merge 17197,17196,17195,17199,17200,17202,17208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php

    r17193 r17567  
    138138 
    139139            $template_code = $objForm->getValue('template_code_temp'); 
    140             if ($template_code == $this->lfGetNowTemplate()) { 
     140            if ($template_code == DEFAULT_TEMPLATE_NAME) { 
    141141                $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 
    142142                break; 
     
    173173        // defaultパラメータのセット 
    174174        $this->templates = $this->lfGetAllTemplates(); 
    175         $this->now_template = $this->lfGetNowtemplate(); 
     175        $this->now_template = DEFAULT_TEMPLATE_NAME; 
    176176 
    177177        // 画面の表示 
     
    224224 
    225225        return $objForm; 
    226     } 
    227  
    228     /** 
    229      * 現在適用しているテンプレートパッケージ名を取得する. 
    230      * 
    231      * @param void 
    232      * @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; 
    241226    } 
    242227 
Note: See TracChangeset for help on using the changeset viewer.