Changeset 1627
- Timestamp:
- 07/21/2009 11:35:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-bbpress.php
r1621 r1627 35 35 require_once( BB_PATH . BB_INC . 'class.bb-taxonomy.php' ); 36 36 37 require_once( BB_PATH . 'bb-admin/includes/functions.bb-admin.php' );38 39 37 $bb = new stdClass(); 40 38 require_once( $bp->forums->bbconfig ); … … 66 64 define( 'BB_INSTALLING', false ); 67 65 66 /* This must be loaded before functionss.bb-admin.php otherwise we get a function conflict. */ 67 if ( !$tables_installed = (boolean) $bbdb->get_results( 'DESCRIBE `' . $bbdb->forums . '`;', ARRAY_A ) ) 68 require_once( ABSPATH . 'wp-admin/upgrade-functions.php' ); 69 70 require_once( BB_PATH . 'bb-admin/includes/functions.bb-admin.php' ); 71 68 72 if ( is_object( $wp_roles ) ) { 69 73 $bb_roles =& $wp_roles; … … 88 92 89 93 /* Check if the tables are installed, if not, install them */ 90 if ( ! (boolean) $bbdb->get_results( 'DESCRIBE `' . $bbdb->forums . '`;', ARRAY_A )) {94 if ( !$tables_installed ) { 91 95 require_once( BB_PATH . 'bb-admin/includes/defaults.bb-schema.php' ); 92 require_once( ABSPATH . 'wp-admin/upgrade-functions.php' ); 93 96 94 97 dbDelta( $bb_queries ); 95 98
Note: See TracChangeset
for help on using the changeset viewer.