Ignore:
Timestamp:
2007/10/03 10:11:17 (19 years ago)
Author:
adachi
Message:

テンプレート機能にてsite_main.tplが反映されるように変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/data/class/SC_View.php

    r15825 r16239  
    9898            'URL_DIR' => URL_DIR, 
    9999            // FIXME tplName¤¬null¤Î¾ì¹ç¤Î½èÍý 
    100             'TPL_PKG_URL' => URL_DIR . USER_DIR . TPL_PKG_DIR . $this->tplName . '/' 
     100            'TPL_PKG_URL' => URL_DIR . USER_DIR . TPL_PKG_DIR . $this->tplName . '/', 
     101            'tpl_site_main' => 'site_main.tpl' 
    101102        ); 
    102103        $this->assignArray($arrDefaultParams); 
     
    296297            } 
    297298        } 
     299        $tpl_site_main = $template_dir . 'site_main.tpl'; 
     300        if (file_exists($tpl_site_main)) { 
     301            $this->assign('tpl_site_main', $tpl_site_main); 
     302        } 
    298303    } 
    299304} 
Note: See TracChangeset for help on using the changeset viewer.