Changeset 1652
- Timestamp:
- 08/11/2009 11:23:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-bbpress.php
r1636 r1652 40 40 require_once( BB_PATH . BB_INC . 'class.bb-taxonomy.php' ); 41 41 42 require_once( BB_PATH . 'bb-admin/includes/functions.bb-admin.php' );43 44 42 $bb = new stdClass(); 45 43 require_once( $bp->forums->bbconfig ); … … 70 68 71 69 define( 'BB_INSTALLING', false ); 70 71 /* This must be loaded before functionss.bb-admin.php otherwise we get a function conflict. */ 72 if ( !$tables_installed = (boolean) $bbdb->get_results( 'DESCRIBE `' . $bbdb->forums . '`;', ARRAY_A ) ) 73 require_once( ABSPATH . 'wp-admin/upgrade-functions.php' ); 74 75 require_once( BB_PATH . 'bb-admin/includes/functions.bb-admin.php' ); 76 72 77 73 78 if ( is_object( $wp_roles ) ) { … … 92 97 $bb->site_id = BP_ROOT_BLOG; 93 98 99 94 100 /* Check if the tables are installed, if not, install them */ 95 if ( ! (boolean) $bbdb->get_results( 'DESCRIBE `' . $bbdb->forums . '`;', ARRAY_A )) {101 if ( !$tables_installed ) { 96 102 require_once( BB_PATH . 'bb-admin/includes/defaults.bb-schema.php' ); 97 require_once( ABSPATH . 'wp-admin/upgrade-functions.php' );98 103 99 104 dbDelta( $bb_queries );
Note: See TracChangeset
for help on using the changeset viewer.