Changeset 15797
- Timestamp:
- 2007/09/20 20:12:29 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-templates/data/class/SC_View.php
r15790 r15797 32 32 // Smarty½é´ü²½ 33 33 $this->initSmarty(); 34 35 $this->tplName = $this->getTemplateName(); 36 $this->assignDefaultVars(); 34 37 35 38 // ¥µ¥¤¥È¾ðÊó¤òassign¤¹¤ë … … 93 96 $arrDefaultParams = array( 94 97 'URL_DIR' => URL_DIR, 95 'TPL_PKG_URL' => URL_DIR . USER_DIR . $this->getTemplateName(). '/'98 'TPL_PKG_URL' => URL_DIR . USER_DIR . TPL_PKG_DIR . $this->tplName . '/' 96 99 ); 97 100 $this->assignArray($arrDefaultParams); … … 221 224 222 225 /** 223 * »ÈÍѤ·¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Ñ¥Ã¥±¡¼¥¸ ¤Î¥Ñ¥¹¤ò¼èÆÀ¤¹¤ë226 * »ÈÍѤ·¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Ñ¥Ã¥±¡¼¥¸Ì¾¤ò¼èÆÀ¤¹¤ë 224 227 */ 225 228 function getTemplateName() { 229 if (!defined('DEFAULT_DSN')) return null; 230 226 231 $objQuery = new SC_Query(); 227 232 $arrRet = $objQuery->select('top_tpl', 'dtb_baseinfo'); … … 252 257 function initDisplay($template) { 253 258 $tpl_mainpage = $this->_smarty->get_template_vars('tpl_mainpage'); 254 $template_name = $this-> getTemplateName();259 $template_name = $this->tplName; 255 260 256 261 // ¥Æ¥ó¥×¥ì¡¼¥È¥Ñ¥Ã¥±¡¼¥¸¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ë¾ì¹ç … … 289 294 function initDisplay($template) { 290 295 $tpl_mainpage = $this->_smarty->get_template_vars('tpl_mainpage'); 291 $template_name = $this-> getTemplateName();296 $template_name = $this->tplName; 292 297 293 298 // ¥Æ¥ó¥×¥ì¡¼¥È¥Ñ¥Ã¥±¡¼¥¸¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
Note: See TracChangeset
for help on using the changeset viewer.