- 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/onupdate.php
r814 r835 21 21 } 22 22 23 $db =& Database::getInstance() ;23 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 24 24 $mid = $module->getVar('mid') ; 25 25 … … 82 82 global $xoopsModule; 83 83 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 84 $xoopsDB =& Database::getInstance();84 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 85 85 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 86 86 … … 94 94 global $xoopsModule; 95 95 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 96 $xoopsDB =& Database::getInstance();96 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 97 97 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 98 98 … … 106 106 global $xoopsModule; 107 107 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 108 $xoopsDB =& Database::getInstance();108 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 109 109 $option_table = $xoopsDB->prefix($wp_prefix . '_options'); 110 110 … … 137 137 global $xoopsModule; 138 138 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 139 $xoopsDB =& Database::getInstance();139 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 140 140 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); 141 141 … … 180 180 function xpress_table_make($module, $mydirname) 181 181 { 182 $db =& Database::getInstance() ;182 $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 183 183 $mid = $module->getVar('mid') ; 184 184 … … 306 306 global $xoopsModule; 307 307 308 $xoopsDB =& Database::getInstance();308 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 309 309 $xpress_prefix = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 310 310 $db_enhanced = $xpress_prefix . $table_name; … … 326 326 function is_found_table_column($table,$column){ 327 327 global $xoopsModule; 328 $xoopsDB =& Database::getInstance();328 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 329 329 330 330 $sql = "DESCRIBE $table $column";
Note: See TracChangeset
for help on using the changeset viewer.