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

Back to archive index

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


Index: xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.5 xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.6
--- xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.5	Tue May 30 12:55:02 2006
+++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php	Tue Aug  1 19:32:18 2006
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @package Legacy
+ * @version $Id: ImageEditAction.class.php,v 1.1.2.6 2006/08/01 10:32:18 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
@@ -9,7 +13,7 @@
 {
 	function _getId()
 	{
-		return isset($_REQUEST['image_id']) ? $_REQUEST['image_id'] : 0;
+		return isset($_REQUEST['image_id']) ? xoops_getrequest('image_id') : 0;
 	}
 
 	function &_getHandler()
@@ -29,6 +33,10 @@
 		$handler =& xoops_getmodulehandler('imagecategory', 'base');
 		$category =& $handler->get($this->mActionForm->get('imgcat_id'));
 		
+		//
+		// [TODO]
+		// Should the following procedure be after parent::_doExecute()?
+		//
 		if ($category->get('imgcat_storetype') == 'file') {
 			$this->_storeFile();
 		}
@@ -78,7 +86,12 @@
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=ImagecategoryList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+		$controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+	
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id'));
 	}
 }
 


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