Minahito
minah****@users*****
2006年 10月 14日 (土) 13:52:25 JST
Index: xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.14 xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.14.2.1 --- xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.14 Sun Sep 10 20:57:35 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php Sat Oct 14 13:52:24 2006 @@ -115,7 +115,7 @@ for ($i=1; $i<= count($definedBlocks); $i++) { $block =& $definedBlocks[$i]; $func_num = $i; - $showfuncs[]=$block['show_func']; + $showfuncs[] = isset($block['class']) ? ('cl::' . $block['class']) : $block['show_func']; $funcfiles[]=$block['file']; $newBlock =& Legacy_ModuleUtils::createBlockByInfo($this->mModule, $block); // @@ -124,7 +124,7 @@ $criteria = new CriteriaCompo(); $criteria->add(new Criteria('mid', $this->mModule->getVar('mid'))); $criteria->add(new Criteria('func_num', $func_num)); - $criteria->add(new Criteria('show_func', $block['show_func'])); + $criteria->add(new Criteria('show_func', isset($block['class']) ? ('cl::' . $block['class']) : $block['show_func'])); $criteria->add(new Criteria('func_file', $block['file'])); $installedBlocks =& $blockHandler->getObjectsDirectly($criteria); //