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

Back to archive index

Minahito minah****@users*****
2006年 10月 14日 (土) 17:25:30 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.79.2.15 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.16
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.15	Sat Oct 14 02:52:17 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Sat Oct 14 17:25:30 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: Legacy_Controller.class.php,v 1.1.2.79.2.15 2006/10/13 17:52:17 minahito Exp $
+ * @version $Id: Legacy_Controller.class.php,v 1.1.2.79.2.16 2006/10/14 08:25:30 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -187,7 +187,7 @@
 
 		$this->setupModuleContext();
 		
-		$this->_processModuleController();
+		$this->_processModule();
 	}
 	
 	function _setupLogger()
@@ -374,7 +374,7 @@
 		$this->_mStrategy->setupModuleContext($this->mRoot->mContext, $dirname);
 	}
 	
-	function _processModuleController()
+	function _processModule()
 	{
 		if ($this->mRoot->mContext->mModule != null) {
 			$module =& $this->mRoot->mContext->mModule;
@@ -398,8 +398,16 @@
 			$GLOBALS['xoopsModule'] =& $module->mXoopsModule;
 			$GLOBALS['xoopsModuleConfig'] =& $module->mModuleConfig;
 		}
+		
+		foreach (array_keys($_REQUEST) as $key) {
+			if (strpos($key, 'Legacy_Event_User_') === 0) {
+				$eventName = substr($key, 18);
+				XCube_DelegateUtils::call('Legacy.Event.User.' . $eventName);
+				$this->mRoot->mContext->mAttributes['userEvent'][$eventName] = true;
+			}
+		}
 	}
-
+	
 	function _processHostAbstractLayer()
 	{
 		if ( !isset($_SERVER['PATH_TRANSLATED']) && isset($_SERVER['SCRIPT_FILENAME']) ) {
@@ -1280,7 +1288,7 @@
 		//
 		// Load Roles
 		//
-		Legacy_RoleManager::loadRolesByMid($context->mXoopsModule->get('mid'));
+		$this->mController->mRoot->mRoleManager->loadRolesByMid($context->mXoopsModule->get('mid'));
 	}
 
 	function setupBlock()


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