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

Back to archive index

Minahito minah****@users*****
2006年 7月 13日 (木) 19:42:57 JST


Index: xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php
diff -u xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.5
--- xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.4	Tue Mar 28 22:31:14 2006
+++ xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php	Thu Jul 13 19:42:57 2006
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @package user
+ * @version $Id: AvatarEditAction.class.php,v 1.1.2.5 2006/07/13 10:42:57 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
@@ -9,19 +13,18 @@
 {
 	function _getId()
 	{
-		return isset($_REQUEST['avatar_id']) ? $_REQUEST['avatar_id'] : 0;
+		return xoops_getrequest('avatar_id');
 	}
 
 	function &_getHandler()
 	{
 		$handler =& xoops_getmodulehandler('avatar');
-		
 		return $handler;
 	}
 
 	function _setupActionForm()
 	{
-		$this->mActionForm =& new AvatarAdminEditForm();
+		$this->mActionForm =& new User_AvatarAdminEditForm();
 		$this->mActionForm->prepare();
 	}
 	
@@ -74,7 +77,12 @@
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=AvatarList", 1, _AD_USER_ERROR_DBUPDATE_FAILED);
+		$controller->executeRedirect("./index.php?action=AvatarList", 1, _AD_USER_ERROR_DBUPDATE_FAILED);
+	}
+
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=AvatarList");
 	}
 }
 


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