Exemplo n.º 1
0
function bp_activity_setup_globals()
{
    global $bp, $wpdb, $current_blog;
    $bp->activity->table_name_user_activity = $wpdb->base_prefix . 'bp_activity_user_activity';
    $bp->activity->table_name_user_activity_cached = $wpdb->base_prefix . 'bp_activity_user_activity_cached';
    $bp->activity->table_name_sitewide = $wpdb->base_prefix . 'bp_activity_sitewide';
    $bp->activity->image_base = BP_PLUGIN_URL . '/bp-activity/images';
    $bp->activity->slug = BP_ACTIVITY_SLUG;
    $bp->version_numbers->activity = BP_ACTIVITY_VERSION;
    if (is_site_admin() && get_site_option('bp-activity-db-version') < BP_ACTIVITY_DB_VERSION) {
        bp_activity_install();
    }
}
Exemplo n.º 2
0
function bp_activity_check_installed() {
	global $bp;

	if ( get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_DB_VERSION )
		bp_activity_install();
}