Changeset 7756 for trunk/bp-forums/deprecated/1.7.php
- Timestamp:
- 01/24/2014 11:48:48 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/deprecated/1.7.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/deprecated/1.7.php
r7213 r7756 55 55 56 56 function bp_forums_bbpress_install( $location = '' ) { 57 global $wpdb, $bbdb , $bp;57 global $wpdb, $bbdb; 58 58 59 59 check_admin_referer( 'bp_forums_new_install_init' ); … … 63 63 } 64 64 65 $bp = buddypress(); 66 65 67 // Create the bb-config.php file 66 68 $initial_write = bp_forums_bbpress_write( 67 BP_PLUGIN_DIR. '/bp-forums/bbpress/bb-config-sample.php',69 $bp->plugin_dir . '/bp-forums/bbpress/bb-config-sample.php', 68 70 $location, 69 71 array( … … 97 99 $file .= "\n" . '$bb->custom_user_table = \'' . $wpdb->users . '\';'; 98 100 $file .= "\n" . '$bb->custom_user_meta_table = \'' . $wpdb->usermeta . '\';'; 99 $file .= "\n\n" . '$bb->uri = \'' . BP_PLUGIN_URL. '/bp-forums/bbpress/\';';101 $file .= "\n\n" . '$bb->uri = \'' . $bp->plugin_url . '/bp-forums/bbpress/\';'; 100 102 $file .= "\n" . '$bb->name = \'' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';'; 101 103
Note: See TracChangeset
for help on using the changeset viewer.