Minahito
minah****@users*****
2006年 7月 12日 (水) 19:50:37 JST
Index: xoops2jp/html/modules/user/admin/actions/RanksEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/RanksEditAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/RanksEditAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/admin/actions/RanksEditAction.class.php:1.1.2.2 Tue Mar 28 22:31:14 2006 +++ xoops2jp/html/modules/user/admin/actions/RanksEditAction.class.php Wed Jul 12 19:50:37 2006 @@ -9,7 +9,7 @@ { function _getId() { - return isset($_REQUEST['rank_id']) ? $_REQUEST['rank_id'] : 0; + return xoops_getrequest('rank_id'); } function &_getHandler() @@ -20,7 +20,7 @@ function _setupActionForm() { - $this->mActionForm =& new RanksAdminEditForm(); + $this->mActionForm =& new User_RanksAdminEditForm(); $this->mActionForm->prepare(); } @@ -50,7 +50,12 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - redirect_header("./index.php?action=RanksList", 1, _AD_USER_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=RanksList", 1, _AD_USER_ERROR_DBUPDATE_FAILED); + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=RanksList"); } }