Minahito
minah****@users*****
2006年 2月 3日 (金) 15:53:02 JST
Index: xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.4 Tue Dec 27 19:30:11 2005 +++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php Fri Feb 3 15:53:02 2006 @@ -13,6 +13,13 @@ class Legacy_AdminSideMenu extends XCube_BlockProcedure { var $mModules=array(); + + /** + * protected, but read OK. + * + * @access protected + */ + var $mCurrentModule = null; function getTitle() { @@ -29,8 +36,19 @@ return false; } - function execute(&$controller,&$user) + function execute(&$controller, &$user) { + $this->mCurrentModule =& $controller->mModuleController->mModuleObject; + if ($this->mCurrentModule->get('dirname') == 'base') { + if (xoops_getrequest('action') == "help") { + $moduleHandler =& xoops_gethandler('module'); + $t_module =& $moduleHandler->getByDirname(xoops_gethandler('dirname')); + if (is_object($t_module)) { + $this->mCurrentModule =& $t_module; + } + } + } + $db=&$controller->getDB(); // // TODO : We don't use handler and write sql directly. @@ -83,7 +101,12 @@ function &getResult() { - return $this->mModules; + $t_arr = array(); + + $t_arr['modules'] =& $this->mModules; + $t_arr['currentModule'] =& $this->mCurrentModule; + + return $t_arr; } function getTemplateName()