Changeset 583 for trunk/xpressme_integration_kit/include/onupdate.php
- Timestamp:
- Apr 23, 2010, 10:49:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/onupdate.php
r534 r583 81 81 function xpress_put_siteurl($mydirname,$url){ 82 82 global $xoopsModule; 83 $wp_prefix = $mydirname; 84 if ($wp_prefix == 'wordpress'){ 85 $wp_prefix = 'wp'; 86 } 83 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 87 84 $xoopsDB =& Database::getInstance(); 88 85 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); … … 96 93 function xpress_put_home($mydirname,$url){ 97 94 global $xoopsModule; 98 $wp_prefix = $mydirname; 99 if ($wp_prefix == 'wordpress'){ 100 $wp_prefix = 'wp'; 101 } 95 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 102 96 $xoopsDB =& Database::getInstance(); 103 97 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); … … 111 105 function get_xpress_option($mydirname,$option_name){ 112 106 global $xoopsModule; 113 $wp_prefix = $mydirname; 114 if ($wp_prefix == 'wordpress'){ 115 $wp_prefix = 'wp'; 116 } 107 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 117 108 $xoopsDB =& Database::getInstance(); 118 109 $option_table = $xoopsDB->prefix($wp_prefix . '_options'); … … 145 136 function get_db_version($mydirname){ 146 137 global $xoopsModule; 147 $wp_prefix = $mydirname; 148 if ($wp_prefix == 'wordpress'){ 149 $wp_prefix = 'wp'; 150 } 138 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 151 139 $xoopsDB =& Database::getInstance(); 152 140 $db_xpress_option = $xoopsDB->prefix($wp_prefix . '_options'); … … 192 180 function xpress_table_make($module, $mydirname) 193 181 { 194 $xp_prefix = $mydirname;195 if ($xp_prefix == 'wordpress'){196 $xp_prefix = 'wp';197 }198 182 $db =& Database::getInstance() ; 199 183 $mid = $module->getVar('mid') ; 200 184 201 185 // XPressME orignal table update 202 $xp_prefix = $mydirname; 203 if ($xp_prefix == 'wordpress'){ 204 $xp_prefix = 'wp'; 205 } 186 $xp_prefix = preg_replace('/wordpress/','wp',$mydirname); 206 187 $msgs = array(); 207 188 … … 307 288 308 289 $xoopsDB =& Database::getInstance(); 309 if ($mydirname == 'wordpress'){ 310 $xpress_prefix= $xoopsDB->prefix('wp_'); 311 } else { 312 $xpress_prefix= $xoopsDB->prefix($mydirname . '_'); 313 } 290 $xpress_prefix = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 314 291 $db_enhanced = $xpress_prefix . $table_name; 315 292
Note: See TracChangeset
for help on using the changeset viewer.