[xoops-cvslog 3806] CVS update: xoops2jp/html/modules/base/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 8月 1日 (火) 19:30:34 JST


Index: xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.9 xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.10
--- xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.9	Mon Jul 31 19:22:42 2006
+++ xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php	Tue Aug  1 19:30:34 2006
@@ -18,7 +18,7 @@
 	
 	function _getId()
 	{
-		return isset($_REQUEST['com_id']) ? $_REQUEST['com_id'] : 0;
+		return isset($_REQUEST['com_id']) ? intval(xoops_getrequest('com_id')) : 0;
 	}
 
 	function &_getHandler()
@@ -83,9 +83,14 @@
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=CommentList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+		$controller->executeRedirect("./index.php?action=CommentList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
 	}
 	
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=CommentList");
+	}
+
 	/**
 	 * @static
 	 * @return Return array as the informations of comments. If $comment has fatal status, return false.


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