Minahito
minah****@users*****
2006年 10月 14日 (土) 02:50:57 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.10.2.2 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.3 --- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.2 Thu Oct 5 18:06:54 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php Sat Oct 14 02:50:57 2006 @@ -77,31 +77,11 @@ $handler =& xoops_gethandler('module'); - while($row=$db->fetchArray($result)) { - $module =& $handler->get($row['mid']); - $dmy=&$module->getInfo(); + while($row = $db->fetchArray($result)) { + $xoopsModule =& $handler->get($row['mid']); + $module =& Legacy_Utils::createModule($xoopsModule); - // - // Load admin menu, and add preference menu by own judge. - // - $module->loadAdminMenu(); - if ($module->getVar('hasnotification') - || ($module->getInfo('config') && is_array($module->getInfo('config'))) - || ($module->getInfo('comments') && is_array($module->getInfo('comments')))) { - $module->adminmenu[] = array( - 'link' => XOOPS_URL.'/modules/base/admin/index.php?action=PreferenceEdit&confmod_id='.$module->getVar('mid'), - 'title' => _PREFERENCES, - 'absolute' => true); - } - - if ($module->hasHelp()) { - $helpUrl = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&dirname=" . $module->getVar('dirname'); - $module->adminmenu[] = array('link' => $helpUrl, - 'title' => _HELP, - 'absolute' => true); - } - - $this->mModules[]=&$module; + $this->mModules[] =& $module; unset($module); }