Minahito
minah****@users*****
2006年 10月 11日 (水) 17:13:17 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.3 xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.3 Tue Oct 10 15:13:00 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Wed Oct 11 17:13:17 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Module.class.php,v 1.1.2.3 2006/10/10 06:13:00 minahito Exp $ + * @version $Id: Legacy_Module.class.php,v 1.1.2.4 2006/10/11 08:13:17 minahito Exp $ */ class Legacy_Module @@ -95,10 +95,12 @@ function _createRenderBuffer() { - $this->mRender =& new XCube_RenderTarget(); - $this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + $root =& XCube_Root::getSingleton(); + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $this->mRender =& $renderSystem->createRenderTarget('main'); if ($this->mXoopsModule != null) { - $this->mRender->setModuleName($this->mXoopsModule->get('dirname')); + $this->mRender->setAttribute('legacy_module', $this->mXoopsModule->get('dirname')); } }