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

Back to archive index

Minahito minah****@users*****
2006年 1月 27日 (金) 18:30:56 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.20 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.21
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.20	Wed Jan 25 12:42:57 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Fri Jan 27 18:30:56 2006
@@ -46,37 +46,6 @@
 		$this->_mControllerState= $adminStateFlag ?  new BaseControllerAdminState() : new BaseControllerPublicState();
 	}
 
-	/**
-	 * Becase this is test, XCube_Controller doesn't implement a process that set 
-	 * up a ContentManager. Therefore, this class overrides executeCommon().
-	 */
-	function executeCommon()
-	{
-		parent::executeCommon();
-
-		// ----------------------------------------------------------
-		// The following lines is comment out for publishing snapshot
-		// ----------------------------------------------------------
-
-		//
-		// [TEST]
-		// I append a content manager that manages content id for comment or other.
-		// I don't decide that Cube kernel keep this, yet.
-		//
-//		require_once XOOPS_BASE_PATH."/kernel/Legacy_ContentManager.class.php";
-//		$manager=new Legacy_ContentManager($this->mRoot);
-//		$this->mRoot->ContentManager=&$manager;
-
-		// [TEST]
-//		require_once XOOPS_ROOT_PATH."/kernel/XCube_TextModifier.class.php";
-//		$manager=new XCube_TextModifierManager();
-//		$this->mRoot->setModifierManager($manager);
-
-//		require_once XOOPS_BASE_PATH."/class/BBCode_Modifier.class.php";
-//		$modifier=new BBCode_Modifier();
-//		$this->mRoot->ModifierManager->addModifier($modifier);
-	}
-
 	function _setupLogger()
 	{
 		require_once XOOPS_ROOT_PATH.'/class/logger.php';
@@ -485,8 +454,12 @@
 
 
 		// Wmm...
-		if($renderTarget->getTemplateName()==null)
+		if($renderTarget->getTemplateName()==null) {
 			$renderTarget->setTemplateName($this->mRenderSystem->mTemplateName);
+			if ($this->mModuleController->isModuleProcess()) {
+				$renderTarget->setModuleName($this->mModuleController->getDirname());
+			}
+		}
 
 		$renderTarget->setAttribute("stdout_buffer",ob_get_contents());
 		ob_end_clean();


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