Minahito
minah****@users*****
2006年 7月 10日 (月) 20:01:07 JST
Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileViewAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileViewAction.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/actions/TplfileViewAction.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/actions/TplfileViewAction.class.php:1.1.2.2 Tue Mar 28 22:30:49 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileViewAction.class.php Mon Jul 10 20:01:07 2006 @@ -1,4 +1,8 @@ <?php +/** + * @package legacyRender + * @version $Id: TplfileViewAction.class.php,v 1.1.2.3 2006/07/10 11:01:07 minahito Exp $ + */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -8,7 +12,7 @@ function getDefaultView(&$controller, &$xoopsUser) { - $id = isset($_REQUEST['tpl_id']) ? intval($_REQUEST['tpl_id']) : 0; + $id = xoops_getrequest('tpl_id'); $handler =& xoops_getmodulehandler('tplfile'); $this->mObject =& $handler->get($id); @@ -30,7 +34,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - redirect_header("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_OBJECT_IS_NOT_EXIST); + $controller->executeRedirect("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_OBJECT_IS_NOT_EXIST); } }