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

Back to archive index

Minahito minah****@users*****
2006年 6月 28日 (水) 14:46:18 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.42 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.43
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.42	Tue Jun 27 18:11:03 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Wed Jun 28 14:46:18 2006
@@ -757,6 +757,12 @@
 {
 	var $mStatusFlag;
 
+	/**
+	 * Create a instance of ModuleController, and set it to mModuleController
+	 * property of $controller.
+	 * 
+	 * @param $controller Legacy_Controller
+	 */
 	function setupModuleController(&$controller)
 	{
 	}
@@ -791,8 +797,9 @@
 
 	function setupModuleController(&$controller)
 	{
-		require_once XOOPS_BASE_PATH."/kernel/Legacy_ModuleController.class.php";
-		$controller->mModuleController=new Legacy_ModuleController($controller);
+		require_once XOOPS_BASE_PATH . "/kernel/Legacy_ModuleController.class.php";
+		$controller->mModuleController =& new Legacy_ModuleController($controller);
+		$controller->mModuleController->prepare();
 	}
 
 	function setupRenderSystem(&$controller)
@@ -807,7 +814,7 @@
 
 		if($controller->mModuleController->isModuleProcess()) {
 			$showFlag = (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $controller->mConfig['startpage'] == $controller->mModuleController->mModuleObject->getVar('dirname'));
-			$mid=$controller->mModuleController->mModuleObject->getVar('mid');
+			$mid = $controller->mModuleController->mModuleObject->getVar('mid');
 		}
 		else {
 			//
@@ -852,8 +859,9 @@
 
 	function setupModuleController(&$controller)
 	{
-		require_once XOOPS_BASE_PATH."/class/Legacy_AdminModuleController.class.php";
-		$controller->mModuleController=new Legacy_AdminModuleController($controller);
+		require_once XOOPS_BASE_PATH . "/class/Legacy_AdminModuleController.class.php";
+		$controller->mModuleController =& new Legacy_AdminModuleController($controller);
+		$controller->mModuleController->prepare();
 	}
 
 	function setupRenderSystem(&$controller)


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