NobuNobu
nobun****@users*****
2006年 4月 11日 (火) 17:39:06 JST
Index: xoops2jp/html/class/XCube_Utils.class.php diff -u xoops2jp/html/class/XCube_Utils.class.php:1.1.2.3 xoops2jp/html/class/XCube_Utils.class.php:1.1.2.4 --- xoops2jp/html/class/XCube_Utils.class.php:1.1.2.3 Sun Apr 2 22:07:47 2006 +++ xoops2jp/html/class/XCube_Utils.class.php Tue Apr 11 17:39:06 2006 @@ -1,5 +1,5 @@ <?php -// $Id: XCube_Utils.class.php,v 1.1.2.3 2006/04/02 13:07:47 nobunobu Exp $ +// $Id: XCube_Utils.class.php,v 1.1.2.4 2006/04/11 08:39:06 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPSCube.org // @@ -129,7 +129,8 @@ function checkSystemModules() { $root=&XCube_Root::getSingleton(); - $systemModules = explode(',',$root->getSiteConfig('Cube','SystemModules')); + $systemModules = array_map('trim', explode(',',$root->getSiteConfig('Cube','SystemModules'))); + $recommendedModules = array_map('trim', explode(',',$root->getSiteConfig('Cube','RecommendedModules'))); $moduleHandler =& xoops_gethandler('module'); $uninstalledModules = array(); $disabledModules = array(); @@ -145,7 +146,7 @@ if ((count($uninstalledModules)==0)&&(count($disabledModules)==0)) { return true; } else { - return array('uninstalled' =>$uninstalledModules, 'disabled'=>$disabledModules); + return array('uninstalled' =>$uninstalledModules, 'disabled'=>$disabledModules, 'recommended'=>$recommendedModules); } } }