Changeset 583 for trunk/xpressme_integration_kit/admin/index.php
- Timestamp:
- Apr 23, 2010, 10:49:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/admin/index.php
r551 r583 36 36 $mydirname = basename(dirname(dirname(__FILE__))); 37 37 $my_dirpath = dirname(dirname(__FILE__)); 38 $wp_prefix_only = $mydirname; 39 if ($wp_prefix_only == 'wordpress') $wp_prefix_only ='wp'; 38 $wp_prefix_only = preg_replace('/wordpress/','wp',$mydirname); 40 39 $db_prefix = $xoopsDB->prefix($wp_prefix_only); 41 40 … … 120 119 $mydirname = basename(dirname(dirname(__FILE__))); 121 120 $my_dirpath = dirname(dirname(__FILE__)); 122 $prefix = $mydirname; 123 if ($prefix == 'wordpress') $prefix ='wp'; 121 $prefix = preg_replace('/wordpress/','wp',$mydirname); 124 122 $wp_prefix = $xoopsDB->prefix($prefix); 125 123 … … 540 538 541 539 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 542 if ($xp_prefix == 'wordpress'){ 543 $xp_prefix = 'wp'; 544 } 540 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 545 541 546 542 $prefix = $xoopsDB->prefix($xp_prefix . '_'); … … 614 610 $xoopsDB =& Database::getInstance(); 615 611 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 616 if ($xp_prefix == 'wordpress'){ 617 $xp_prefix = 'wp'; 618 } 612 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 619 613 $prefix = $xoopsDB->prefix($xp_prefix . '_'); 620 614 $group_role_tables = $prefix.'group_role';
Note: See TracChangeset
for help on using the changeset viewer.