[xoops-cvslog 3784] CVS update: xoops2jp/html/preload

Back to archive index

Minahito minah****@users*****
2006年 7月 31日 (月) 19:36:50 JST


Index: xoops2jp/html/preload/IndexRedirector.class.php
diff -u xoops2jp/html/preload/IndexRedirector.class.php:1.1.2.3 xoops2jp/html/preload/IndexRedirector.class.php:1.1.2.4
--- xoops2jp/html/preload/IndexRedirector.class.php:1.1.2.3	Fri Jul 14 17:37:24 2006
+++ xoops2jp/html/preload/IndexRedirector.class.php	Mon Jul 31 19:36:50 2006
@@ -9,17 +9,16 @@
 {
 	function preBlockFilter()
 	{
-		$delegate =& new XCube_Delegate("IndexRedirector", "redirect");
-		$this->mController->mRoot->mEventManager->add("Legacypage.Top.Access", $delegate);
+		$this->mController->mRoot->mDelegateManager->add("Legacypage.Top.Access", array(&$this, "redirect"));
 	}
 
-	function redirect(&$controller, &$eventArgs)
+	function redirect()
 	{
-		$startPage = $controller->getConfig('startpage');
+		$startPage = $this->mController->getConfig('startpage');
 		$handler =& xoops_gethandler('module');
 		$module =& $handler->get($startPage);
 		if ($startPage != null && $startPage != "--" && !is_object($module)) {
-			$controller->executeForward(XOOPS_URL . '/modules/' . $module->getShow('dirname') . '/');
+			$this->mController->executeForward(XOOPS_URL . '/modules/' . $module->getShow('dirname') . '/');
 		}
 	}
 }


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