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

Back to archive index

Minahito minah****@users*****
2006年 11月 10日 (金) 15:19:11 JST


Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php
diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.3 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.4
--- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.3	Sun Oct 15 15:07:01 2006
+++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php	Fri Nov 10 15:19:11 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: AvatarEditAction.class.php,v 1.1.2.9.2.3 2006/10/15 06:07:01 minahito Exp $
+ * @version $Id: AvatarEditAction.class.php,v 1.1.2.9.2.4 2006/11/10 06:19:11 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -152,13 +152,18 @@
 	function getDefaultView(&$controller, &$xoopsUser)
 	{
 		$navi =& new XCube_PageNavigator("index.php?action=AvatarEdit&amp;uid=" . $xoopsUser->get('uid'), XCUBE_PAGENAVI_START);
-		$handler =& xoops_gethandler('avatar');
+		$handler =& xoops_getmodulehandler('avatar');
+		
+		$this->mSystemAvatars[] =& $handler->createNoavatar();
 		
 		$this->mFilter =& new User_AvatarFilterForm($navi, $handler);
 		$this->mFilter->fetch();
 		
 		$criteria = $this->mFilter->getCriteria();
-		$this->mSystemAvatars =& $handler->getObjects($criteria);
+		$t_avatarArr =& $handler->getObjects($criteria);
+		foreach (array_keys($t_avatarArr) as $key) {
+			$this->mSystemAvatars[] =& $t_avatarArr[$key];
+		}
 		
 		$this->mAvatarSelectForm =& new User_AvatarSelectForm();
 		$this->mAvatarSelectForm->prepare();


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