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

Back to archive index

Minahito minah****@users*****
2006年 8月 10日 (木) 18:45:51 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.9 xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.10
--- xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.9	Mon Aug  7 20:30:35 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php	Thu Aug 10 18:45:51 2006
@@ -97,6 +97,15 @@
 	var $mController;
 	var $mSmarty;
 	
+	/**
+	 * This is the buffer which stores standard output when the render-target
+	 * in renderMain() doesn't use a template.
+	 * 
+	 * @access private
+	 * @var string
+	 */
+	var $_mStdoutBuffer = null;
+	
 	function prepare(&$controller)
 	{
 		$this->mController =& $controller;
@@ -147,6 +156,8 @@
 		foreach($target->getAttributes() as $key=>$value) {
 			$this->mSmarty->assign($key,$value);
 		}
+		
+		$this->mSmarty->assign('stdout_buffer', $this->_mStdoutBuffer);
 
 		//
 		// Get a virtual current module object from the controller and assign it.
@@ -201,6 +212,9 @@
 			}
 			
 			$result=$this->mSmarty->fetch("file:".$target->getTemplateName());
+			$buffer = $target->getAttribute("stdout_buffer");
+			
+			$this->_mStdoutBuffer .= $buffer;
 		}
 		else {
 			$result=$target->getAttribute("stdout_buffer");


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