Skip to:
Content

BuddyPress.org

Changeset 2526


Ignore:
Timestamp:
02/01/2010 03:52:07 PM (17 years ago)
Author:
apeatling
Message:

Function cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r2502 r2526  
    334334                global $wpdb, $bp;
    335335
    336                 /* Start with an empty $stack */
    337                 $stack = array();
    338 
    339                 /* Retrieve all descendants of the $root node */
    340 
    341336                /* Select the user's fullname with the query so we don't have to fetch it for each comment */
    342337                if ( function_exists( 'xprofile_install' ) ) {
    … …  
    346341                }
    347342
     343                /* Retrieve all descendants of the $root node */
    348344                $descendants = $wpdb->get_results( $wpdb->prepare( "SELECT a.*, u.user_email, u.user_nicename, u.user_login, u.display_name{$fullname_select} FROM {$bp->activity->table_name} a, {$wpdb->users} u{$fullname_from} WHERE u.ID = a.user_id {$fullname_where} AND a.type = 'activity_comment' AND a.item_id = %d AND a.mptt_left BETWEEN %d AND %d ORDER BY a.date_recorded ASC", $activity_id, $left, $right ) );
    349345
Note: See TracChangeset for help on using the changeset viewer.