[xoops-cvslog 6126] CVS update: xoops2jp/html/modules/user/preload/Primary

Back to archive index

Minahito minah****@users*****
2007年 1月 21日 (日) 10:12:41 JST


Index: xoops2jp/html/modules/user/preload/Primary/Primary.class.php
diff -u xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.6 xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.7
--- xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.6	Fri Oct  6 17:28:13 2006
+++ xoops2jp/html/modules/user/preload/Primary/Primary.class.php	Sun Jan 21 10:12:40 2007
@@ -12,6 +12,7 @@
 	{
 		$root =& XCube_Root::getSingleton();
 		$this->mController->mSetupUser->add("User_Utils::setupUser");
+		$this->mController->_mNotifyRedirectToUser->add("User_Utils::convertUrlToUser");
 
 		$file = XOOPS_ROOT_PATH . "/modules/user/kernel/LegacypageFunctions.class.php";
 		
@@ -83,6 +84,17 @@
 			$principal = new Legacy_GenericPrincipal($identity, array("Site.GuestUser"));
 		}
 	}
+	
+	function convertUrlToUser(&$url)
+	{
+		global $xoopsRequestUri;
+		if (!strstr($url, '?')) {
+			$url .= "?xoops_redirect=" . urlencode($xoopsRequestUri);
+		}
+		else {
+			$url .= "&xoops_redirect=" . urlencode($xoopsRequestUri);
+		}
+	}
 }
 
 ?>
\ No newline at end of file


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