Minahito
minah****@users*****
2006年 7月 10日 (月) 20:01:21 JST
Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php:1.1.2.4 xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php:1.1.2.5 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php:1.1.2.4 Tue Mar 28 22:30:49 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php Mon Jul 10 20:01:21 2006 @@ -1,4 +1,8 @@ <?php +/** + * @package legacyRender + * @version $Id: TplsetCloneAction.class.php,v 1.1.2.5 2006/07/10 11:01:21 minahito Exp $ + */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -17,7 +21,7 @@ function _setupActionForm() { - $this->mActionForm =& new TplsetCloneForm(); + $this->mActionForm =& new LegacyRender_TplsetCloneForm(); $this->mActionForm->prepare(); } @@ -31,6 +35,11 @@ if ($this->mObject == null) { return LEGACYRENDER_FRAME_VIEW_ERROR; } + + if (xoops_getrequest('_form_control_cancel') != null) { + return LEGACYRENDER_FRAME_VIEW_CANCEL; + } + // // If image is no, the data has to continue to keep his value. // @@ -48,7 +57,7 @@ return $this->mObjectHandler->insertClone($this->mObject, $this->mCloneObject) ? LEGACYRENDER_FRAME_VIEW_SUCCESS : LEGACYRENDER_FRAME_VIEW_ERROR; } - + function executeViewInput(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("tplset_clone.html"); @@ -63,7 +72,13 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - redirect_header("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + die("HOGE"); + $controller->executeForward("./index.php?action=TplsetList"); } }