Changeset 17647 for branches/version-2


Ignore:
Timestamp:
2008/10/07 12:19:33 (16 years ago)
Author:
nakanishi
Message:

管理画面がデザインテンプレートの影響を受けないように修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php

    r17615 r17647  
    6969        $this->arrErr  = array(); 
    7070        $this->arrForm = array(); 
    71         $this->tpl_select = DEFAULT_TEMPLATE_NAME; 
     71        $this->tpl_select = TEMPLATE_NAME; 
    7272        ini_set("max_execution_time", 300); 
    7373    } 
     
    139139            //現在使用中のテンプレートとデフォルトのテンプレートは削除できないようにする 
    140140            $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) { 
    142142                $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 
    143143                break; 
     
    173173        // defaultパラメータのセット 
    174174        $this->templates = $this->lfGetAllTemplates(); 
    175         $this->now_template = DEFAULT_TEMPLATE_NAME; 
    176  
     175        $this->now_template = TEMPLATE_NAME; 
    177176        // 画面の表示 
    178177        $objView->assignobj($this); 
     
    232231        $objQuery = new SC_Query(); 
    233232        $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')); 
    235234        // キャッシュを生成 
    236235        $masterData = new SC_DB_MasterData_Ex(); 
Note: See TracChangeset for help on using the changeset viewer.