Skip to:
Content

BuddyPress.org

Changeset 394 for trunk/bp-activity.php


Ignore:
Timestamp:
10/23/2008 12:56:37 PM (17 years ago)
Author:
apeatling
Message:

Removed home base requirement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r391 r394  
    9696   
    9797    $bp['activity'] = array(
    98         'table_name_loggedin_user' => $wpdb->base_prefix . $bp['loggedin_homebase_id'] . '_activity',
    99         'table_name_loggedin_user_cached' => $wpdb->base_prefix . $bp['loggedin_homebase_id'] . '_activity_cached',
    100        
    101         'table_name_current_user' => $wpdb->base_prefix . $bp['current_homebase_id'] . '_activity',
    102         'table_name_current_user_cached' => $wpdb->base_prefix . $bp['current_homebase_id'] . '_activity_cached',
    103        
    104         'table_name_loggedin_user_friends_cached' => $wpdb->base_prefix . $bp['loggedin_homebase_id'] . '_friends_activity_cached',
     98        'table_name_loggedin_user' => $wpdb->base_prefix . 'user_' . $bp['loggedin_userid'] . '_activity',
     99        'table_name_loggedin_user_cached' => $wpdb->base_prefix . 'user_' . $bp['loggedin_userid'] . '_activity_cached',
     100       
     101        'table_name_current_user' => $wpdb->base_prefix . 'user_' . $bp['current_userid'] . '_activity',
     102        'table_name_current_user_cached' => $wpdb->base_prefix . 'user_' . $bp['current_userid'] . '_activity_cached',
     103       
     104        'table_name_loggedin_user_friends_cached' => $wpdb->base_prefix . 'user_' . $bp['loggedin_userid'] . '_friends_activity_cached',
    105105        'table_name_sitewide' => $wpdb->base_prefix . 'bp_activity_sitewide',
    106106       
     
    115115    }
    116116}
    117 add_action( 'wp', 'bp_activity_setup_globals', 1 ); 
     117add_action( 'wp', 'bp_activity_setup_globals', 1 );
    118118add_action( '_admin_menu', 'bp_activity_setup_globals', 1 );
    119119
     
    180180/***** Actions **********/
    181181
    182 function bp_activity_record( $item_id, $component_name, $component_action, $is_private, $dual_record = false, $secondary_user_homebase_id = false ) {
     182function bp_activity_record( $item_id, $component_name, $component_action, $is_private, $dual_record = false ) {
    183183    global $bp, $wpdb;
    184184
     
    196196    /* Save an activity entry for both logged in and secondary user. For example for a new friend connection
    197197       you would want to show "X and Y are now friends" on both users activity stream */
    198     if ( $dual_record && $secondary_user_homebase_id ) {
     198    if ( $dual_record ) {
    199199        $table_name = $wpdb->base_prefix . $secondary_user_homebase_id . '_activity';
    200200        $table_name_cached = $wpdb->base_prefix . $secondary_user_homebase_id . '_activity_cached';
Note: See TracChangeset for help on using the changeset viewer.