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

Back to archive index

Minahito minah****@users*****
2006年 8月 4日 (金) 13:38:30 JST


Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php
diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.6 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.7
--- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.6	Wed Jul 19 19:20:33 2006
+++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php	Fri Aug  4 13:38:30 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: AvatarEditAction.class.php,v 1.1.2.6 2006/07/19 10:20:33 minahito Exp $
+ * @version $Id: AvatarEditAction.class.php,v 1.1.2.7 2006/08/04 04:38:30 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -177,6 +177,27 @@
 		return parent::getDefaultView($controller, $xoopsUser);
 	}
 	
+	function execute(&$controller, &$xoopsUser)
+	{
+		if ($this->mObject == null) {
+			return USER_FRAME_VIEW_ERROR;
+		}
+	
+		$this->mActionForm->load($this->mObject);
+		
+		$this->mActionForm->fetch();
+		$this->mActionForm->validate();
+	
+		if($this->mActionForm->hasError()) {
+			return $this->getDefaultView($controller, $xoopsUser);
+		}
+	
+		$this->mActionForm->update($this->mObject);
+		
+		return $this->_doExecute($this->mObject) ? USER_FRAME_VIEW_SUCCESS
+		                                         : USER_FRAME_VIEW_ERROR;
+	}
+
 	/**
 	 * 1) Save avatar file which has been uploaded.
 	 * 2) If old avatar file exists, remove it.


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