185 | | $file .= "\n\n" . '$bb->uri = \'' . BP_PLUGIN_URL . '/bp-forums/bbpress/\';'; |
186 | | $file .= "\n" . '$bb->name = \'' . get_blog_option( BP_ROOT_BLOG, 'name' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';'; |
187 | | |
188 | | if ( is_multisite() ) |
189 | | $file .= "\n" . '$bb->wordpress_mu_primary_blog_id = ' . BP_ROOT_BLOG . ';'; |
190 | | |
| 185 | $file .= "\n\n" . 'if( function_exists( \'bp_core_get_table_prefix\' ) && is_multisite() ) {'; |
| 186 | $file .= "\n\t" . '$bb_table_prefix = bp_core_get_table_prefix() . \'bb_\';'; |
| 187 | $file .= "\n\t" . '$bb->name = get_blog_option( BP_ROOT_BLOG, \'blogname\' ) . ' . '\' ' . __( 'Forums', 'buddypress' ) . '\';'; |
| 188 | $file .= "\n\t" . '$bb->uri = BP_PLUGIN_URL . \'/bp-forums/bbpress/\';'; |
| 189 | $file .= "\n\t" . '$current_site = get_current_site();'; |
| 190 | $file .= "\n\t" . '$bb->wordpress_mu_primary_blog_id = $current_site->blog_id;'; |
| 191 | $file .= "\n" . '} else {'; |
| 192 | $file .= "\n\t" . '$bb->name = \'' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';'; |
| 193 | $file .= "\n\t" . '$bb->uri = \'' . BP_PLUGIN_URL . '/bp-forums/bbpress/\';'; |
| 194 | $file .= "\n" . '}'; |
| 195 | |