[xoops-cvslog 3504] CVS update: xoops2jp/html/modules/legacyRender/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 7月 10日 (月) 20:09:53 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php:1.1.2.4 xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php:1.1.2.5
--- xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php:1.1.2.4	Sat May 27 22:10:07 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileDeleteAction.class.php	Mon Jul 10 20:09:53 2006
@@ -9,7 +9,7 @@
 {
 	function _getId()
 	{
-		return isset($_REQUEST['tpl_id']) ? intval($_REQUEST['tpl_id']) : 0;
+		return xoops_getrequest('tpl_id');
 	}
 
 	function &_getHandler()
@@ -36,7 +36,7 @@
 	{
 		$render->setTemplateName("tplfile_delete.html");
 		$render->setAttribute('actionForm', $this->mActionForm);
-		#cubson::lazy_load('tplfile', $this->mObject);
+		$this->mObject->loadSource();
 		$render->setAttribute('object', $this->mObject);
 	}
 
@@ -55,7 +55,14 @@
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
-		redirect_header("./index.php?action=TplfileList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+		$controller->executeRedirect("./index.php?action=TplfileList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+	}
+
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$tplset = $this->mObject->get('tpl_tplset');
+		$module = $this->mObject->get('tpl_module');
+		$controller->executeForward("./index.php?action=TplfileList&tpl_tplset=${tplset}&tpl_module=${module}");
 	}
 }
 


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