Minahito
minah****@users*****
2006年 5月 17日 (水) 16:21:43 JST
Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.7 xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.8 --- xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.7 Tue Mar 28 22:30:49 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php Wed May 17 16:21:43 2006 @@ -27,10 +27,24 @@ function executeViewIndex(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("tplfile_list.html"); + + // + // Load override file. + // + if ($this->mFilter->mTplset != null && $this->mFilter->mTplset->get('tplset_name') != 'default') { + foreach (array_keys($this->mObjects) as $key) { + $this->mObjects[$key]->loadOverride($this->mFilter->mTplset->get('tplset_name')); + } + } + $render->setAttribute('objects', $this->mObjects); $render->setAttribute('pageNavi', $this->mPageNavi); $render->setAttribute('filterForm', $this->mFilter); + if ($this->mFilter->mTplset != null) { + $render->setAttribute('targetTplset', $this->mFilter->mTplset->get('tplset_name')); + } + // // TODO We must fetch only module objects that has templates. //