[xoops-cvslog 3871] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 8月 2日 (水) 18:38:24 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.57 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.58
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.57	Mon Jul 31 19:34:02 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Wed Aug  2 18:38:24 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: Legacy_Controller.class.php,v 1.1.2.57 2006/07/31 10:34:02 minahito Exp $
+ * @version $Id: Legacy_Controller.class.php,v 1.1.2.58 2006/08/02 09:38:24 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -713,12 +713,26 @@
 		//
 		// Theme Control
 		//
-		$screenTarget=$this->mDialogMode ? new Legacy_DialogRenderTarget() : new Legacy_ThemeRenderTarget();
+		$screenTarget = $this->mDialogMode ? new Legacy_DialogRenderTarget() : new Legacy_ThemeRenderTarget();
 		$screenTarget->setTemplateName($this->getMainTheme());
-		
-		$screenTarget->setAttribute('xoops_contents',$resultRenderTarget->getResult());
+		$screenTarget->setAttribute('xoops_contents', $resultRenderTarget->getResult());
 
-		$this->mRenderSystem->renderWithTarget($screenTarget);
+		//
+		// Get the render-system through theme object.
+		//
+		// [TODO]
+		// Because get() of the virtual handler is heavy, we have to consider
+		// the new solution about this process.
+		//
+		$handler =& xoops_getmodulehandler('theme', 'base');
+		$theme =& $handler->get($this->getMainTheme());
+
+		$renderSystem =& $this->mRoot->getRenderSystem($theme->get('render_system'));
+
+		//
+		// Rendering.
+		//
+		$renderSystem->renderWithTarget($screenTarget);
 
 		//
 		// Debug Process


xoops-cvslog メーリングリストの案内
Back to archive index