Minahito
minah****@users*****
2006年 10月 15日 (日) 01:33:59 JST
Index: xoops2jp/html/modules/legacy/class/newblocks.php diff -u xoops2jp/html/modules/legacy/class/newblocks.php:1.1.2.1 xoops2jp/html/modules/legacy/class/newblocks.php:1.1.2.2 --- xoops2jp/html/modules/legacy/class/newblocks.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/class/newblocks.php Sun Oct 15 01:33:59 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -class BaseNewblocksObject extends XoopsSimpleObject +class LegacyNewblocksObject extends XoopsSimpleObject { var $mModule = null; @@ -18,7 +18,7 @@ var $mCachetime = null; - function BaseNewblocksObject() + function LegacyNewblocksObject() { $this->initVar('bid', XOBJ_DTYPE_INT, '', true); $this->initVar('mid', XOBJ_DTYPE_INT, '0', true); @@ -71,7 +71,7 @@ function loadBmodule() { - $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler =& xoops_getmodulehandler('block_module_link', 'legacy'); $criteria =& new Criteria('block_id', $this->get('bid')); $this->mBmodule =& $handler->getObjects($criteria); @@ -79,7 +79,7 @@ function loadColumn() { - $handler =& xoops_getmodulehandler('columnside', 'base'); + $handler =& xoops_getmodulehandler('columnside', 'legacy'); $this->mColumn =& $handler->get($this->get('side')); } @@ -90,11 +90,11 @@ } } -class BaseNewblocksHandler extends XoopsObjectGenericHandler +class LegacyNewblocksHandler extends XoopsObjectGenericHandler { var $mTable = "newblocks"; var $mPrimary = "bid"; - var $mClass = "BaseNewblocksObject"; + var $mClass = "LegacyNewblocksObject"; function delete(&$obj, $force = false) { @@ -102,7 +102,7 @@ // // Delete related data from block_module_link. // - $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler =& xoops_getmodulehandler('block_module_link', 'legacy'); $handler->deleteAll(new Criteria('block_id'), $obj->get('bid')); //