Minahito
minah****@users*****
2006年 10月 11日 (水) 17:10:19 JST
Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.3 Thu Oct 5 19:18:13 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Wed Oct 11 17:10:19 2006 @@ -175,7 +175,7 @@ // Theme rendering // $blocks = array(); - foreach($this->mController->mBlockContents[0] as $key => $result) { + foreach($this->mController->mRoot->mContext->mAttributes['legacy_BlockContents'][0] as $key => $result) { // $this->mSmarty->append('xoops_lblocks', $result); $blocks[$result['name']] = $result; } @@ -212,9 +212,9 @@ $result = null; if ($target->getTemplateName()) { - if ($target->getModuleName()) { - $this->mSmarty->setModulePrefix($target->getModuleName()); - $this->mSmarty->template_dir = XOOPS_MODULE_PATH . "/" . $target->getModuleName() . "/admin/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; + if ($target->getAttribute('legacy_module') != null) { + $this->mSmarty->setModulePrefix($target->getAttribute('legacy_module')); + $this->mSmarty->template_dir = XOOPS_MODULE_PATH . "/" . $target->getAttribute('legacy_module') . "/admin/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; } $result=$this->mSmarty->fetch("file:".$target->getTemplateName());