- Timestamp:
- May 19, 2011, 6:47:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/include/xpress_block_render.php
r719 r749 46 46 function get_block_id($mydirname,$func_file,$options) 47 47 { 48 global $xoopsDB; 48 49 $options_string = ''; 49 50 $mid = get_block_mid($mydirname); … … 52 53 $options_string .= $val; 53 54 } 54 $xoopsDB =& Database::getInstance();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 global $xoopsDB; 70 70 $modules_tbl = $xoopsDB->prefix('modules'); 71 71 … … 81 81 function get_xpress_theme_name($mydirname) 82 82 { 83 global $wpdb ;83 global $wpdb,$xoopsDB; 84 84 85 85 if (is_null($wpdb)){ 86 $xoopsDB =& Database::getInstance();87 86 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 88 87 … … 305 304 306 305 function get_xpress_mod_config($mydirname,$conf_name=''){ 306 global $xoopsDB; 307 307 $module_handler =& xoops_gethandler('module'); 308 308 $xoopsModule =& $module_handler->getByDirname($mydirname); 309 309 $mid = $xoopsModule->getVar('mid'); 310 $xoopsDB =& Database::getInstance();311 310 $db_config = $xoopsDB->prefix('config'); 312 311
Note: See TracChangeset
for help on using the changeset viewer.