Minahito
minah****@users*****
2006年 10月 27日 (金) 18:27:32 JST
Index: xoops2jp/html/core/XCube_Utils.class.php diff -u xoops2jp/html/core/XCube_Utils.class.php:1.1.2.2 xoops2jp/html/core/XCube_Utils.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_Utils.class.php:1.1.2.2 Sat Oct 7 16:44:15 2006 +++ xoops2jp/html/core/XCube_Utils.class.php Fri Oct 27 18:27:32 2006 @@ -1,7 +1,7 @@ <?php /** * @package XCube - * @version $Id: XCube_Utils.class.php,v 1.1.2.2 2006/10/07 07:44:15 ryuji_amano Exp $ + * @version $Id: XCube_Utils.class.php,v 1.1.2.3 2006/10/27 09:27:32 minahito Exp $ */ /** @@ -52,29 +52,6 @@ return str_replace($searches,$replaces,$subject); } - - function checkSystemModules() { - $root=&XCube_Root::getSingleton(); - $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(); - foreach($systemModules as $systemModule) { - if(!empty($systemModule)) { - if(!($moduleObject =& $moduleHandler->getByDirname($systemModule))) { - $uninstalledModules[] = $systemModule; - } else if(!$moduleObject->getVar('isactive')) { - $disabledModules[] = $systemModule; - } - } - } - if ((count($uninstalledModules)==0)&&(count($disabledModules)==0)) { - return true; - } else { - return array('uninstalled' =>$uninstalledModules, 'disabled'=>$disabledModules, 'recommended'=>$recommendedModules); - } - } } ?> \ No newline at end of file