Minahito
minah****@users*****
2005年 12月 26日 (月) 21:23:12 JST
Index: xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php diff -u xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php:1.1.2.1 Fri Dec 16 18:52:31 2005 +++ xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php Mon Dec 26 21:23:12 2005 @@ -30,7 +30,7 @@ while (($dir = readdir($handler)) !== false) { if (!in_array($dir, $this->_mExclusions) && is_dir(XOOPS_MODULE_PATH . "/" . $dir)) { $module =& $this->get($dir); - if ($module !== false) { + if ($module !== false ) { $this->_mXoopsModules[] =& $module; unset($module); } @@ -42,7 +42,7 @@ /** * Return module object by $dirname that is specified module directory. - * If specified module has been installed, not return it. + * If specified module has been installed or doesn't keep xoops_version, not return it. * @param $dirname string * @param XoopsModule or false */ @@ -50,6 +50,10 @@ { $ret=false; + if (!file_exists(XOOPS_MODULE_PATH . "/" . $dirname . "/xoops_version.php")) { + return $ret; + } + $moduleHandler =& xoops_gethandler('module'); $check =& $moduleHandler->getByDirname($dirname);