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

Back to archive index

Minahito minah****@users*****
2006年 11月 15日 (水) 19:43:02 JST


Index: xoops2jp/html/modules/user/actions/UserInfoAction.class.php
diff -u xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.9.2.1 xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.9.2.2
--- xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.9.2.1	Fri Nov 10 20:30:01 2006
+++ xoops2jp/html/modules/user/actions/UserInfoAction.class.php	Wed Nov 15 19:43:02 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: UserInfoAction.class.php,v 1.1.2.9.2.1 2006/11/10 11:30:01 minahito Exp $
+ * @version $Id: UserInfoAction.class.php,v 1.1.2.9.2.2 2006/11/15 10:43:02 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -25,6 +25,8 @@
 	var $mSearchResults = null;
 	
 	var $mSelfDelete = false;
+	
+	var $mPmliteURL = null;
 
 	function prepare(&$controller, &$xoopsUser, $moduleConfig)
 	{
@@ -51,6 +53,14 @@
 		$this->mRankObject =& $rankHandler->get($this->mObject->get('rank'));
 		
 		$root =& $controller->mRoot;
+		
+		$service =& $root->mServiceManager->getService('privateMessage');
+		if ($service != null) {
+			$client =& $root->mServiceManager->createClient($service);
+			$this->mPmliteURL = $client->call('getPmliteUrl', array('fromUid' => is_object($xoopsUser) ? $xoopsUser->get('uid') : 0, 'toUid' => $uid));
+		}
+		unset($service);
+		
 		$service =& $root->mServiceManager->getService("LegacySearch");
 		if ($service != null) {
 			$this->mSearchResults = array();
@@ -91,6 +101,8 @@
 		$render->setTemplateName("user_userinfo.html");
 		$render->setAttribute("thisUser", $this->mObject);
 		$render->setAttribute("rank", $this->mRankObject);
+		
+		$render->setAttribute('pmliteUrl', $this->mPmliteURL);
 
 		$myts =& MyTextSanitizer::getInstance();
 		$userSignature = $myts->makeTareaData4Show($this->mObject->get('user_sig'), 0, 1, 1);


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