Minahito
minah****@users*****
2006年 9月 28日 (木) 10:45:42 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.8 xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.9 --- xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.8 Sat Sep 2 22:53:54 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php Thu Sep 28 10:45:42 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: ImageEditAction.class.php,v 1.1.2.8 2006/09/02 13:53:54 tom_g3x Exp $ + * @version $Id: ImageEditAction.class.php,v 1.1.2.9 2006/09/28 01:45:42 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -27,6 +27,17 @@ $this->mActionForm =& new Legacy_ImageAdminEditForm(); $this->mActionForm->prepare(); } + + function getDefaultView(&$controller, &$xoopsUser) + { + $flag = parent::getDefaultView($controller, $xoopsUser); + + if ($flag == LEGACY_FRAME_VIEW_INPUT) { + $this->mActionForm->set('imgcat_id', xoops_getrequest('imgcat_id')); + } + + return $flag; + } function _doExecute() {