Minahito
minah****@users*****
2006年 8月 17日 (木) 11:08:38 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.65 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.66 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.65 Sat Aug 12 11:32:31 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Thu Aug 17 11:08:38 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Controller.class.php,v 1.1.2.65 2006/08/12 02:32:31 minahito Exp $ + * @version $Id: Legacy_Controller.class.php,v 1.1.2.66 2006/08/17 02:08:38 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -251,6 +251,10 @@ // Create render-target for blocks. We use reset() to re-cycle this // object in the foreach loop. // + + // + // TODO We should use RenderSystem to create a render-target. + // $renderTarget =& new XCube_RenderTarget(); $renderTarget->setType(XCUBE_RENDER_TARGET_TYPE_BLOCK); @@ -274,13 +278,14 @@ } } else { + $renderSystem =& $this->mRoot->getRenderSystem($blockProcedure->getRenderSystemName()); + $blockProcedure->execute($this, $this->getXoopsUser(), $renderTarget); if (!$blockProcedure->hasResult()) { continue; } - $renderSystem =& $this->mRoot->getRenderSystem($blockProcedure->getRenderSystemName()); $renderSystem->renderBlock($renderTarget); $this->mBlockShowFlags[$blockProcedure->getEntryIndex()] = true;