- Timestamp:
- Feb 9, 2013, 8:47:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/include/xpress_block_render.php
r802 r835 52 52 $options_string .= $val; 53 53 } 54 $xoopsDB =& Database::getInstance();54 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 55 55 $block_tbl = $xoopsDB->prefix('newblocks'); 56 56 $module_dir = XOOPS_ROOT_PATH . '/modules/' . $mydirname; … … 67 67 function get_block_mid($mydirname) 68 68 { 69 $xoopsDB =& Database::getInstance();69 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 70 70 $modules_tbl = $xoopsDB->prefix('modules'); 71 71 … … 84 84 85 85 if (is_null($wpdb)){ 86 $xoopsDB =& Database::getInstance();86 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 87 87 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 88 88 … … 312 312 $xoopsModule =& $module_handler->getByDirname($mydirname); 313 313 $mid = $xoopsModule->getVar('mid'); 314 $xoopsDB =& Database::getInstance();314 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 315 315 $db_config = $xoopsDB->prefix('config'); 316 316
Note: See TracChangeset
for help on using the changeset viewer.