Changeset 2089
- Timestamp:
- 11/13/2009 02:16:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r2088 r2089 307 307 308 308 /* Retrieve all descendants of the $root node */ 309 $descendants = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$bp->activity->table_name} WHERE component_action = 'activity_comment' AND item_id = %d AND mptt_left BETWEEN %d AND %d ", $activity_id, $left, $right ) );309 $descendants = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$bp->activity->table_name} WHERE component_action = 'activity_comment' AND item_id = %d AND mptt_left BETWEEN %d AND %d ORDER BY date_recorded ASC", $activity_id, $left, $right ) ); 310 310 311 311 /* Loop descendants and build an assoc array */
Note: See TracChangeset
for help on using the changeset viewer.