Minahito
minah****@users*****
2006年 2月 3日 (金) 13:26:39 JST
Index: xoops2jp/html/modules/base/actions/SmiliesAction.class.php diff -u xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.1 xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.1 Fri Feb 3 12:04:50 2006 +++ xoops2jp/html/modules/base/actions/SmiliesAction.class.php Fri Feb 3 13:26:39 2006 @@ -6,6 +6,11 @@ class Legacy_SmiliesAction extends Legacy_AbstractListAction { + /** + * @var string + */ + var $mTargetName = null; + function &_getHandler() { $handler =& xoops_getmodulehandler('smiles', 'base'); @@ -23,6 +28,12 @@ return "./misc.php?type=Smilies"; } + function getDefaultView(&$controller, &$xoopsUser) + { + $this->mTargetName = xoops_getrequest('target'); + return parent::getDefaultView($controller, $xoopsUser); + } + function executeViewIndex(&$controller, &$xoopsUser, &$render) { // @@ -34,6 +45,7 @@ $render->setTemplateName("legacy_misc_smilies.html"); $render->setAttribute("objects", $this->mObjects); $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("targetName", $this->mTargetName); } }