[xoops-cvslog 3747] CVS update: xoops2jp/html/modules/user/actions

Back to archive index

Minahito minah****@users*****
2006年 7月 27日 (木) 18:43:26 JST


Index: xoops2jp/html/modules/user/actions/UserInfoAction.class.php
diff -u xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.4 xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.5
--- xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.4	Wed Jul 19 19:20:33 2006
+++ xoops2jp/html/modules/user/actions/UserInfoAction.class.php	Thu Jul 27 18:43:26 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: UserInfoAction.class.php,v 1.1.2.4 2006/07/19 10:20:33 minahito Exp $
+ * @version $Id: UserInfoAction.class.php,v 1.1.2.5 2006/07/27 09:43:26 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -43,13 +43,12 @@
 		
 		$root =& $controller->mRoot;
 		$service =& $root->mServiceManager->getService("LegacySearch");
-		if ($service) {
-			$current_uid = is_object($xoopsUser) ? $xoopsUser->get('uid') : 0;
+		if (is_object($service)) {
+			$client =& $root->mServiceManager->createClient($service);
 			
-			$client =& new XCube_ServiceClient($service);
+			$current_uid = is_object($xoopsUser) ? $xoopsUser->get('uid') : 0;
 
-			$parameters = array("uid" => $uid, 'current_uid' => $current_uid);
-			$this->mSearchResults = $client->call("getItems", $parameters);
+			$this->mSearchResults = $client->call('GetItems', $uid, $current_uid);
 		}
 
 		return USER_FRAME_VIEW_SUCCESS;


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