Changeset 394 for trunk/bp-activity.php
- Timestamp:
- 10/23/2008 12:56:37 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r391 r394 96 96 97 97 $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', 105 105 'table_name_sitewide' => $wpdb->base_prefix . 'bp_activity_sitewide', 106 106 … … 115 115 } 116 116 } 117 add_action( 'wp', 'bp_activity_setup_globals', 1 ); 117 add_action( 'wp', 'bp_activity_setup_globals', 1 ); 118 118 add_action( '_admin_menu', 'bp_activity_setup_globals', 1 ); 119 119 … … 180 180 /***** Actions **********/ 181 181 182 function bp_activity_record( $item_id, $component_name, $component_action, $is_private, $dual_record = false , $secondary_user_homebase_id = false) {182 function bp_activity_record( $item_id, $component_name, $component_action, $is_private, $dual_record = false ) { 183 183 global $bp, $wpdb; 184 184 … … 196 196 /* Save an activity entry for both logged in and secondary user. For example for a new friend connection 197 197 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 ) { 199 199 $table_name = $wpdb->base_prefix . $secondary_user_homebase_id . '_activity'; 200 200 $table_name_cached = $wpdb->base_prefix . $secondary_user_homebase_id . '_activity_cached';
Note: See TracChangeset
for help on using the changeset viewer.